April 6th, 2000, 02:58 PM
I'm new to using PHP3... How is it possible to add a Server Side include of a CGI script into a PHP3 file? In the past I have renamed the files .shtml to handle this. (I'm accessing a banner script ex: <!--exec#/cgi-bin/bannerad.cgi>.)
April 6th, 2000, 04:39 PM
Use the 'virtual()' function. This is the equivalent of <!--#include virtual=""--> and <!--#exec CGI=""--> in SSI for php. If, of course, you're trying to include normal text and/or php scripts, it's wiser to use 'include()'.
eg; <?php virtual("/cgi-bin/adbanner.cgi");?>
[This message has been edited by cka (edited April 06, 2000).]