Hi guys I am trying to follow http://elvenware.com/charlie/development/web/Python/Xampp.html to set up python with xampp . I am running xammp usb lite 1.77
following the directions here and on Python & XAMPP on Windows: how to?,
I have created
#!F:/Python27/python
print "Content-type: text/html\n\n"
print "<html><head><title>Hello World from Python</title></head><body>Hello World from a Python CGI Script</body></html>
when I try to run it after placing it in the cgi-bin folder and running it like htp://localhost/cgi-bin/test.py I get:
Premature end of script headers: test.py
BTW an included htp://localhost/cgi-bin/cgi.cgi script works!!
Any idea what I can do to fix this?
Thank you in advance,
Bill
SyntaxError: EOL while scanning string literalwithout even executing the firstprintstatement. Which means no headers get printed out, which means you will get this error fromxampp.