CGI interface!(PHP newbie)
| From: | Kevin Connolly | Date: | Thu, 22 Feb 2001 16:57:42 +0000 |
| Subject: | CGI interface!(PHP newbie) | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2181@lists.php.net to get a copy of this message | ||
Hi,
I am running an Apache web server installed on Win2k. I am trying to use the PHP system() command
but unfortunately it doesn't work on windoze! Ihave been told that I need to use the CGI
interface by one of the PHP guys!! Can someone tell me how to do this on windows ? I ran the
installer and didn't do any building myself!
I will paste the mail I got below in case I am not making myself clear!
MAIL:
You can compile PHP as a CGI binary, with a configure line like this:
./configure --enable-force-cgi-redirect --with-mysql --with-gd
It's (Security wise) important to use the --enable-force-cgi-redirect
If your compile succeed, copy it to your /home/httpd/cgi-bin dir, and
voila, PHP as CGI. However, CGI's are much slower, so it would be wise
to use the CGI interface only if you need to call system commands.
I really can't give an estimate before system() will work, but it will be
in php-4.0.5 (which is likely to be released in 5-6 weeks).
Derick
Any help would be much appreciated!
Sincerely
Kevin.