How can I execute a CGI script through PHP? PHP doesn't like this at all:
<!--#exec cgi="/cgi-bin/poll/fantasycricket.pl" -->
Printable View
How can I execute a CGI script through PHP? PHP doesn't like this at all:
<!--#exec cgi="/cgi-bin/poll/fantasycricket.pl" -->
orPHP Code:<?php include "/cgi-bin/poll/fantasycricket.pl" ?>
HTHPHP Code:<?php virtual("/cgi-bin/poll/fantasycricket.pl" ?>
PHP doesn't like that because that's SSI.. I don't really know why; but I laughed when I read it..
I laugh when I read every post. Bwah-ha-ha!
The PHP in my post is missing the ) and the ;
That makes it twice as funny.
include does a raw text include, so that won't work.
You could use fopen to send a HTTP request to the CGI script and simply write out the results.