Apache-specific Functions
Apache
apache_lookup_uri
Perform a partial request for the specified URI and return all
info about it
Description
object 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
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.
ascii2ebcdic
Translate string from ASCII to EBCDIC
Description
int ascii2ebcdic
string ascii_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
int ebcdic2ascii
string ebcdic_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
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.
apache_child_terminate
Terminate apache process after this request
Description
string apache_child_terminate
apache_child_terminate will terminate the apache
process executing the current PHP request. It may be used to terminate
a process after a script with high memory consumption has been run
as memory will usualy only be freed internaly but not given back
to the operation system.
apache_setenv
Set an Apache subprocess_env variable
Description
int apache_setenv
string variable
string value
bool walk_to_top
&warn.undocumented.func;