HTML Error from Python CGI Script

richie at richie at
Thu Jun 27 14:59:56 CEST 2002


> syntax error at line 2: `newline or ;' unexpected

Are you writing your temporary HTML file into your cgi-bin directory?  Is
the server configured to run files in that area as scripts rather than to
serve them as documents?  If so, you should either write the file into the
'pages' area of your web server (or whatever it's called on your system)
rather than cgi-bin, or reconfigure your web server to only run certain
extensions as CGI scripts.

Richie Hindle
richie at

More information about the Python-list mailing list