位置: 编程技术 - 正文
推荐整理分享PHP:apache_lookup_uri()的用法_Apache函数,希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!
(PHP 4, PHP 5)
apache_lookup_uri — 对指定的 URI 执行部分请求并返回所有有关信息
说明 object apache_lookup_uri ( string $filename )本函数对一个 URL 执行部分请求。取得所有有关给定资源的重要信息后就停手。
、仅在将 PHP 安装为 Apache 模块时,支持此函数。
参数filename
被请求的文件名(URI)。
返回值一个有关 URI 信息的 object。此 object 的属性有:
status the_request status_line method content_type handler uri filename path_info args boundary no_cache no_local_copy allowed send_bodyct bytes_sent byterange clength unparsed_uri mtime request_time
范例
Example #1 apache_lookup_uri() 例子
<?php$info=apache_lookup_uri('index.php?var=value');print_r($info);if(file_exists($info->filename)){echo'fileexists!';}?>以上例程的输出类似于:
PHP:apache_child_terminate()的用法_Apache函数 apache_child_terminate(PHP4=4.0.5,PHP5)apache_child_terminate在本次请求结束后终止apache子进程说明boolapache_child_terminate(void)apache_child_terminate()将把运行当前PHP请求的Ap
PHP:apache_get_modules()的用法_Apache函数 apache_get_modules(PHP4=4.3.2,PHP5)apache_get_modules获得已加载的Apache模块列表说明arrayapache_get_modules(void)获得已加载的Apache模块列表。返回值包含已加载的Apache模
PHP:apache_get_version()的用法_Apache函数 apache_get_version(PHP4=4.3.2,PHP5)apache_get_version获得Apache版本信息说明stringapache_get_version(void)获得Apache版本信息。返回值成功时返回Apache版本信息或者在失败时
标签: PHP:apache_lookup_uri()的用法_Apache函数
本文链接地址:https://www.jiuchutong.com/biancheng/280077.html 转载请保留说明!友情链接: 武汉网站建设