Home » » virtual

virtual

Written By 1 on Sunday, September 30, 2012 | 7:16 PM

bool virtual ( string $filename )

Perform an Apache sub-request

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 .shtml files, or anything else that you would parse through Apache.


While the virtual() function has it's promising sides, there exists issues when using it in relation to a cache system such as eAccellerator.  The issue becomes that the first time you load with a virtual file, it will seem to work fine.  But once the cache is put into play, the virtual call will end up returning nothing at all, and basically returning a blank page.



Please realize that this is not an issue with virtual(), but instead an issue of the cacheing application.  Should anyone else have a similar issue, hopefully this will shed some light onto this subject.



Jonathon Hibbard

4.3.3 As of PHP 4.3.3 you can use this function with the NSAPI server module in Netscape/iPlanet/SunONE webservers, too. 4.0.6 This function may be used on PHP files. However, it is typically better to use include or require for PHP files.


(FREE Download) Minecraft Beta - One Step Install - Easy Update - Hybrid PC, Mac and Linux

0 Comment:

Post a Comment