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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php