Jump to content

Recommended Posts

Posted

#!/usr/bin/python
print "Bienvenue sur mon site web !"

The main problem on your code is that, you haven't declared the content type and the semi-colon(; ) is missing in the content. Please add the following line exactly after the shebang line:

print "Content-type: text/plain\n\n";

After adding the above line and ";" to the content line, your code will look like:

#!/usr/bin/python
print "Content-type: text/plain\n\n";
print "Bienvenue sur mon site web !";

I've copied your code to my website and your code worked fine after adding

print "Content-type: text/plain\n\n";

line. Take a look at www.sagnikganguly.ga/cgi-bin/to175.py

Posted

You are Welcome!!!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...