本文整理汇总了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>