First of all, here's 2 new problems with PHP this year:
forceredirect security check (will be triggered in your example on newest PHP releses, to fix we need to add this to php.ini:
; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; You CAN safely turn this off for IIS, in fact, you MUST.
; cgi.force_redirect = 1
cgi.force_redirect = 0
But here is another trouble ... instead of my PHP hello world (or the script that contains just <? phpinfo() ?> string... I'm getting this in CGI-BIN directory:
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
Or this if I'm adding #!/php/php.exe or just putting not in CGI-BIN directory:
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: php.exe
Indeed, PHP works standalone pretty well. And I can see that by running "c:\php\php.exe script.php" I'm getting full normal set of CGI headers.
And I see no solution so far ...
P.S. Sorry, I'm new to PHP, worked with Perl/Apache for 3 last years and now just need to install one forum php/mysql board ...