Forum Moderators: coopster

Message Too Old, No Replies

How to load a CGI script inside PHP?

         

branmh

4:56 pm on Feb 20, 2005 (gmt 0)

10+ Year Member



Is there a way to load a CGI script inside PHP?

hakre

5:29 pm on Feb 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



maybe via system() [de2.php.net] this could be possible for scripts which work in the shell, too. to have tru cgi included, you need to trick around with php as apache module and a virtual [de2.php.net] include (that's used by shtml, too). note: this is not available in php excuted as cgi, it will perform an apache subrequest.