Re: [PHP4BETA] Php4.0 and Cocoon
[email protected] ("Chris Adams")
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 27 May 2000 14:10:09 +0200, Andr Langhorst wrote: >But how do I do it using virtual(), I ve never used it before and the >docs are not very mature about virtual() >Could you describe the process in keywords? From http://www.php.net/manual/function.virtual.php 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.