How can I manage the execution of SSI commands inside of PHP files on an Apache server?
I want to insert the result of a .CGI inside a document created by PHP ... using <!--#include virtual="file.cgi"--> does not work for .PHP here.
What do I have to change in the Apache configuration files?
Is there a reason for not simply using the appropriate PHP code to exec the CGI file and include the results directly?
uuh 🙂 i am a beginner in using PHP and i did not find any command to execute CGI files and include their result.
can you tell me how?
See the manual section on "Apache-specific Functions." The virtual() function will perform an Apache subrequest that is similar to #include, and it is specifically recommended for CGI scripts.
the only thing i get when i try to use the virtual command is the following:
Fatal error: Call to undefined function: virtual() in c:\dfue\internet\apache\htdocs\test.php on line 14
I have installed the current versions of PHP and Apache, Win9x.