Apache PHP

The functions in this section are available only when PHP is compiled as a module for theApache Web server.

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.
Properties-of-the-Object-Returned-by-apache lookup uri

apache_lookup_uri

apache_lookup_uri

string apache_note(string name, string value)
The apache_note function allows you to fetch and set values in Apache's note table. The current value of the named entry is returned. If the optional value argument is present, then the value of the entry will be changed to the supplied value. The notes table exists for the duration of the request made to the Apache Web Server and is available to any modules activated during the request. This function allows you to communicate with other Apache modules. One possible use of this functionality is the passing of information to the logging module.

Like apache_lookup_uri, the apache_note function deals with request records inside the Apache API. And like apache_lookup_uri, this function is available only when PHP is run as an Apache module. This function is a wrapper for the table_get and table_set functions that are part of the Apache API.

<?
apache_note("session_id", $session_id);
?>

array getallheaders()
The getallheaders function returns every header sent by both the server and the browser. Some of these are turned into environment variables, which are then made available as variables inside your PHP script. Since this function relies on the Apache API, it is available only when you run PHP as an Apache module.

getallheaders

getallheaders

boolean virtual(string filename)
The virtual function is available only when PHP is an Apache module. It is equivalent to writing <!— #include virtual filename—>, which is an Apache subrequest. You may wish to refer to the pache documentation to learn more. Use the include and require functions if you want to parse PHP script. FALSE is returned on error.

<?
virtual("ssi-example.shtml");
?>

Face Book Twitter Google Plus Instagram Youtube Linkedin Myspace Pinterest Soundcloud Wikipedia

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

PHP Topics