apache_lookup_uri
class apache_lookup_uri(string URI)
Opens an Apache subrequest to look up status information for a URI (Uniform Resource Identifier).
Returns:
Class containing a list of status information for a URI
Description:
If you have installed PHP as an Apache module, you can use this function to get information about a URI. Just as with virtual() or an SSI-include, the function opens an Apache subrequest; therefore, you can specify only a local document URI as the parameter.
The following properties will be set in the returned class:
|
allowed
|
content_type
|
|
args
|
filename
|
|
boundary
|
handler
|
|
byterange
|
method
|
|
bytes_sent
|
mtime
|
|
clength
|
no_cache
|
|
no_local_copy
|
status_line
|
|
path_info
|
the_request
|
|
request_time
|
unparsed_uri
|
|
status
|
uri
|
Version:
Existing since version 3.0.4
Example:
Get the system filename of the top-level index.html file
$uri = apache_lookup_uri("/index.html");
print("filename: " . $uri->filename);
$arr = get_object_vars($uri);
while (list($prop, $val) = each($arr)) {
echo "<BR /> $prop = $val \n";
}
|