note 19738 deleted from function.apache-lookup-uri by betz
| From: | betz@php.net | Date: | Thu, 03 Jul 2003 11:24:19 +0000 |
| Subject: | note 19738 deleted from function.apache-lookup-uri by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-51425@lists.php.net to get a copy of this message | ||
Note Submitter: Jaap van Ganswijk <ganswijk@xs4all.nl>
----
A much more concise code example is:
$cl=apache_lookup_uri("http://www.php.net/");
while (list($ky,$da)=each($cl)) {
print "$ky: $da<br>\n";
}
Giving about the same output:
status: 200
the_request: GET /jaap/c/chipdir.oth/160/tmp/convert.php HTTP/1.1
method: GET
uri: /jaap/c/chipdir.oth/160/tmp/http://www.php.net/
filename: /var/www/html/jaap/c/chipdir.oth/160/tmp/http:
path_info: //www.php.net/
no_cache: 0
no_local_copy: 1
allowed: 0
sent_bodyct: 0
bytes_sent: 0
byterange: 0
clength: 0
unparsed_uri: /jaap/c/chipdir.oth/160/tmp/http://www.php.net/
mtime: 1015642091
request_time: 1015642094
(I am trying to figure out why the local path is prepended to the request...)