Guido van Rossum | 6807721 | 2002-10-16 21:01:27 +0000 | [diff] [blame] | 1 | #!/usr/local/bin/python |
| 2 | |
| 3 | """CGI test 1 - check server setup.""" |
| 4 | |
| 5 | # Until you get this to work, your web server isn't set up right or |
| 6 | # your Python isn't set up right. |
| 7 | |
Guido van Rossum | a55dda6 | 2002-10-17 16:33:40 +0000 | [diff] [blame] | 8 | # If cgi0.sh works but cgi1.py doesn't, check the #! line and the file |
Guido van Rossum | 6807721 | 2002-10-16 21:01:27 +0000 | [diff] [blame] | 9 | # permissions. The docs for the cgi.py module have debugging tips. |
| 10 | |
| 11 | print "Content-type: text/html" |
| 12 | print |
| 13 | print "<h1>Hello world</h1>" |
| 14 | print "<p>This is cgi1.py" |