Hello, I don't know if this is the best group for my question but I'll try anyway.
I'm trying to use PHP in a self-written web server (made with Delphi). The web server sets some environment variables and then invokes the CGI version of the interpreter. If I simly call php.exe giving the file name of the PHP script as a parameter, it processes it and writes the result to stdout. No problems here. But when I set all CGI environment variables, the PHP interpreter simply exits immediately with exit code -1 and doesn't write anything to stdout. It seems to be only if I set any of the following environment variables: SCRIPT_NAME, SCRIPT_FILENAME or PATH_INFO. All other variables work well. I'm pretty sure it is not a problem with the way I create my child process as I noted the same behavior manually setting the environment variables and calling php.exe at the DOS prompt. php.exe simply terminates immediately without writing anything (not even headers) to the screen. Any ideas? I've installed PHP 4.1.0 under MS Windows 2000 using a binary package. PHP works well on the same machine with Apache Webserver as a module. The test code is simly <?php phpinfo(); ?> Udo PS: Is there any document online that describes how to support PHP in own web servers? I'd like to use the CGI version, however. Posted by ELKNews 1.0.4-B Empower your News Reader! http://www.atozedsoftware.com -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php