home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pyhtmldoc / t / testing_yo < prev    next >
Text File  |  1996-11-14  |  955b  |  18 lines

  1. <TITLE>Testing your CGI script -- Python library reference</TITLE>
  2. Next: <A HREF="../d/debugging_cgi_scripts" TYPE="Next">Debugging CGI scripts</A>  
  3. Prev: <A HREF="../i/installing_your_cgi_script_on_a_unix_system" TYPE="Prev">Installing your CGI script on a Unix system</A>  
  4. Up: <A HREF="../c/cgi" TYPE="Up">cgi</A>  
  5. Top: <A HREF="../t/top" TYPE="Top">Top</A>  
  6. <H2>10.1.7. Testing your CGI script</H2>
  7. Unfortunately, a CGI script will generally not run when you try it
  8. from the command line, and a script that works perfectly from the
  9. command line may fail mysteriously when run from the server.  There's
  10. one reason why you should still test your script from the command
  11. line: if it contains a syntax error, the python interpreter won't
  12. execute it at all, and the HTTP server will most likely send a cryptic
  13. error to the client.
  14. <P>
  15. Assuming your script has no syntax errors, yet it does not work, you
  16. have no choice but to read the next section:
  17. <P>
  18.