Calling php-cgi.exe

From: Date: Tue, 24 Jul 2007 23:26:39 +0000
Subject: Calling php-cgi.exe
Groups: php.general 
Request: Send a blank email to php-general+get-259454@lists.php.net to get a copy of this message
I have written a small web server for windows. It works fine for static HTML files, but I would like to be able to run PHP scripts. Playing with php-cgi.exe on the command line I see that it returns the content type and the generated HTML from a script 'php-cgi.exe test.php'. From experimenting, I also see that I can pass the get vars like 'php-cgi.exe test.php var1=val1 var2=val2'. Is this the best way? How about POST info and do certain things need to be encoded a certain way? Is there a good document on this? TIA, Shawn

« previous php.general (#259454) next »