note 14353 deleted from function.apache-lookup-uri by danbeck
| From: | danbeck@php.net | Date: | Wed, 13 Mar 2002 15:46:12 +0000 |
| Subject: | note 14353 deleted from function.apache-lookup-uri by danbeck | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-27727@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