Please correct the following Python CGi program -


please correct following cgi program

#!usr/bin/python  print "content-type : text/html\n\n"  print "<html><body><span>hello world</span></body></html>" 

what wrong above code?

i getting 500 internal server error , working through command prompt.

and please tell me why need keep 2 "\n" in statement

print "content-type : text/html\n\n" 

i think first line should be

#!/usr/bin/python 

and if doesn't work try

#!/usr/bin/env python 

you have missed / before usr


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -