Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

object apache_lookup_uri(string uri)


The apache_lookup_uri function evaluates a URI, or Universal Resource Identifier,
and returns an object containing properties describing the URI. This function is a wrapper
for a function that's part of the Apache Web Server's API: sub_req_lookup_uri.
Consequently, you must be running PHP as an Apache module in order to use this
function. The exact meaning of most of the returned object's properties is beyond this
text. They mirror the properties of Apache's request_rec structure. The
sub_req_lookup_uri function is contained in Apache's http_request.c source
file, and the comments there may satisfy the truly curious.


Table 14.1 lists the properties of the returned object.


Table 14.1. Properties of the Object Returned by apache_lookup_uri
apache_lookup_uri
allowed
args
boundary
byterange
bytes_sent
clength
content_type
filename
handler
method
mtime
no_cache
no_local_copy
path_info
request_time
send_bodyct
status
status_line
the_request
unparsed_uri
uri


Figure 14-1. apache_lookup_uri.
Free download pdf