Running scripts from within PHP similar to SSI
| From: | Bilal Deniz | Date: | Sun, 24 Jun 2001 06:10:26 +0000 |
| Subject: | Running scripts from within PHP similar to SSI | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-55014@lists.php.net to get a copy of this message | ||
Hi All,
Just wondering if it were possible to do like the following SSI line:
<!--#exec cgi="./cgi-bin/txtcounter.cgi"-->
from within php.
I know a php alternative should be made, but for the time being and for
future's sake....
So far i've tried back ticks, passthru(), exec(), but the problem is
that the URI and other variables aren't being passed to the perl script
in question.
Any idea would be appreciated.
Deniz