Apache-specific functions
Apache
apache_lookup_uri
Perform a partial request for the specified URI and return all info about it
Description
class apache_lookup_uri
string filename
This performs a partial request for a URI. It goes just far
enough to obtain all the important information about the given
resource and returns this information in a class. The properties
of the returned class are:
status
the_request
status_line
method
content_type
handler
uri
filename
path_info
args
boundary
no_cache
no_local_copy
allowed
send_bodyct
bytes_sent
byterange
clength
unparsed_uri
mtime
request_time
Note: apache_lookup_uri only works when PHP is installed as an Apache module
apache_note
Get and set apache request notes
Description
string apache_note
string note_name
string note_value
apache_note is an Apache-specific function
which gets and sets values in a request's
notes table. If called with one argument, it
returns the current value of note
note_name. If called with two arguments, it
sets the value of note note_name to
note_value and returns the previous value of
note note_name.
virtual
Perform an Apache sub-request
Description
int virtual
string filename
virtual is an Apache-specific function which
is equivalent to <!--#include virtual...--> in mod_include.
It performs an Apache sub-request. It is useful for including CGI
scripts or .shtml files, or anything else that you would parse
through Apache. Note that for a CGI script, the script must
generate valid CGI headers. At the minimum that means it must
generate a Content-type header. For PHP files, you need to use
include or require;
virtual cannot be used to include a
document which is itself a PHP file..