本文整理匯總了PHP中HttpRequest::URL方法的典型用法代碼示例。如果您正苦於以下問題:PHP HttpRequest::URL方法的具體用法?PHP HttpRequest::URL怎麽用?PHP HttpRequest::URL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類HttpRequest
的用法示例。
在下文中一共展示了HttpRequest::URL方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: PresentWSDL
public function PresentWSDL()
{
$Namespace = SiteRoot . constant("jf_jPath_Request_Delimiter") . "service" . constant("jf_jPath_Request_Delimiter");
$Endpoint = HttpRequest::URL(false);
//SoapClients use this to send request!
j::$App->LoadSystemModule("plugin.nusoap.nusoap");
$soap = new soap_server();
$soap->configureWSDL("Dispatch", $Namespace, $Endpoint);
// $Namespace);
$r = $this->ListFiles(dirname(__FILE__));
foreach ($r as $k => $v) {
$this->Register($this->File2Class($v), $soap, $Namespace);
}
$soap->service("");
return true;
}
示例2: header
<?php
// define ("Permission",$Permission);
header("HTTP/1.1 401 Authentication Required", false);
?>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Not Authorized</title>
</head><body>
<h1>Not Authorized</h1>
<p>You are not authorized to access this resource, i.e you don't have the sufficient permissions
to access <b><?php
echo HttpRequest::File();
?>
</b> at <b><?php
echo HttpRequest::URL();
?>
</b></p>
</body></html>