note 14353 added to function.apache-lookup-uri.php
| From: | torsten dot rosenberger at xss dot co dot at | Date: | Fri, 27 Jul 2001 11:08:38 +0000 |
| Subject: | note 14353 added to function.apache-lookup-uri.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15937@lists.php.net to get a copy of this message | ||
Hello
I made an example for this class to see
how to get out the data from the object.
Because by the first contact it wasn't really
clear for me.
$ap = apache_lookup_uri("www.php.net");
echo $ap->status;
The result for status ist here 200 (that' s OK)
To get all data try this.
$look = array(status,the_request,status_line,
method,content_type, handler,
uri,filename,path_info,args,
boundary,no_cache,
no_local_copy,allowed,
send_bodyct, byterange,clength,
unparsed_uri,mtime,request_time);
foreach ($look as $elem) {
echo $elem ." = ".$ap->$elem;
}
status = 200
the_request = GET /examples/apache.php HTTP/1.0
status_line =
method = GET
content_type =
handler =
uri = /examples/www.php.net
filename = /var/spool/httpd/numbis/htdocs/examples/www.php.net
path_info =
args =
boundary =
no_cache = 0
no_local_copy = 1
allowed = 0
send_bodyct =
byterange = 0
clength = 0
unparsed_uri = /examples/www.php.net
mtime =
request_time = 996232224
BR/Torsten
http://www.php.net/manual/de/function.apache-lookup-uri.php