Php5 + Apache22

  • Thread starter Thread starter Anonymous
  • Start date Start date
the error-log is telling me "premature end of script headers"


#!/usr/local/bin/python

print "Content-Type: text/html\n\n"
print "<h1>Hello world</h1>"



am I missing something?
 
CGI != php. Yes, you can make CGI scripts with php but that's not how it's supposed to work.

Drop this in your webroot, named index.php:
PHP:
<?php
phpinfo();
?>
 
I figured it out. I was using python to execute the script and was indenting the print statements when I wasn't supposed to.
 
Back
Top