Re: Small CGI Serve
| From: | Stig S. Bakken | Date: | Tue, 18 Jun 2002 14:22:40 +0000 |
| Subject: | Re: Small CGI Serve | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85305@lists.php.net to get a copy of this message | ||
On Tue, 2002-06-18 at 13:25, BB wrote:
> I am trying to write a small CGI webserver.
>
> Having finally found out how to pass the Environment vars onto PHP, I am
> stumpted to find that PHP wasn't reading them and putting them in their
> place (GET vars).
>
> I tried changing the exe from the php-cli to just php. This now brings up a
> security error and I cannot find a solution
The CLI version of PHP is not designed to be run from a web server like
this. If anything, you can write CGI scripts with it, where you have to
import the environment variables yourself (sounds silly doesn't it? :).
The security error you're getting is probably related to force-redirect,
could you provide the error message?
- Stig
--
Stig Sæther Bakken, Fast Search & Transfer ASA, Trondheim, Norway
http://pear.php.net/wishlist.php/ssb