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.
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.<?
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.
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.
PHP Related Interview Questions
|PHP Interview Questions||MySQL Interview Questions|
|PHP+MySQL Interview Questions||Drupal Interview Questions|
|MYSQL DBA Interview Questions||PHP5 Interview Questions|
|WordPress Interview Questions||Joomla Interview Questions|
|CakePHP Interview Questions||CodeIgniter Interview Questions|
|PHP7 Interview Questions|
An Introduction To Php
Variables, Operators, And Expressions
Classes And Objects
I/o And Disk Access
Time, Date, And Configuration Functions
Parsing And String Evaluation
Sorting Searching And Random Numbers
Integration With Html
Efficiency And Debugging
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.