Apache-specific Functions
Apache
apache_lookup_uri
Perform a partial request for the specified URI and return all
info about it
Description
objectapache_lookup_uri
stringfilename
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
apache_lookup_uri only works when PHP
is installed as an Apache module.
apache_note
Get and set apache request notes
Description
stringapache_note
stringnote_name
stringnote_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.
ascii2ebcdic
Translate string from ASCII to EBCDIC
Description
intascii2ebcdic
stringascii_str
ascii2ebcdic is an Apache-specific function which
is available only on EBCDIC based operating systems (OS/390, BS2000).
It translates the ASCII encoded string ascii_str
to its equivalent EBCDIC representation (binary safe), and returns
the result.
See also the reverse function ebcdic2ascii
ebcdic2ascii
Translate string from EBCDIC to ASCII
Description
intebcdic2ascii
stringebcdic_str
ebcdic2ascii is an Apache-specific function which
is available only on EBCDIC based operating systems (OS/390, BS2000).
It translates the EBCDIC encoded string ebcdic_str
to its equivalent ASCII representation (binary safe), and returns
the result.
See also the reverse function ascii2ebcdic
virtual
Perform an Apache sub-request
Description
intvirtual
stringfilename
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.
apache_child_terminate
Terminate apache process after this request
Description
stringapache_child_terminate
apache_child_terminate will terminate the Apache
process executing the current PHP request once it is completed. It may be
used to terminate a process after a script with high memory consumption
has been run as memory will usually only be freed internally but not
given back to the operating system.
See also exit.
apache_setenv
Set an Apache subprocess_env variable
Description
intapache_setenv
stringvariable
stringvalue
boolwalk_to_top
&warn.undocumented.func;