I'm trying to run a script as CGI under apache, instead of using the apache 
module, because the module is safe-mode enabled and I need to bypass that 
for one script.

If you put this script into a file (.cgi) and give it executable 
permissions, you can run it from the command line

------------PHP CODE START------------
print "Hello";
------------PHP CODE END------------

and the Content-Type header is added by PHP. But when I put it in my 
cgi-bin directory it would not execute from a browser - I got internal 
server error.

The error log said "Premature end of script headers."

Has anybody been able to find a way round this problem? Running PHP NOT as 
a module?

Thanks a lot.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to