virtual()
virtual - Perform an Apache sub-request
Syntax
bool virtual (
string $filename)
Arguments
- filename - The file that the virtual command will be performed on.
Description
virtual() is an Apache-specific function which is similar to <!--#include virtual...-->in mod_include. It performs an Apache sub-request. It is useful for including CGI scripts or.shtmlfiles, 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-Typeheader.
Version
PHP 4, 5
Return value
Performs the virtual command on success, or returns FALSE on failure.