View Single Post
Old Feb 16th, 2008, 9:17 AM   #17
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,799
Rep Power: 5 Sane will become famous soon enough
Re: Running python scripts on localhost

In CGI-Land, not sending data back to the user is the equivilent of an error. What could appear to be an error is just a lack of you sending the appropriate header information at the top with:

print "Content-type: text/html\r"
print "\r"

Also, look at the "Hello World" script you said you were able to get working. It should have a line at the top that's similar or equal to my first line. Use the hello world's script first line instead of mine, because it knows the correct location of your Python interpreter.
Sane is offline   Reply With Quote