cgi script

Piet van Oostrum piet at cs.uu.nl
Sun Aug 2 20:31:07 CEST 2009


>>>>> golu <bhardwajjayesh7 at gmail.com> (g) wrote:

>g> Hi,
>g> i started learning cgi few days ago in python and everything went
>g> fine  until i started getting the follwing error
>g> "
>g> The server encountered an internal error and was unable to complete
>g> your request. Either the server is overloaded or there was an error in
>g> a CGI script.

>g> If you think this is a server error, please contact the webmaster. "
>g>   i am using apache on xampp. plz help

Putting the following in your script might help as it will show the
exception trace in your browser (if it gets that far, that is).


import cgitb
cgitb.enable()

-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list