Re: Internet search engine
Olivier MARCE (alf@lifac6.uucp)
28 Mar 1995 07:54:11 GMT
Guido.van.Rossum@cwi.nl wrote:
: > I've written a script that uses the Dbhash library to search a small
: > database, this works fine. I now want to put a HTML front end on the
: > database for access via the WWW. I've tried using the cgi interface to
: > do this but it doesn't work. I can write cgi scripts that generate
: > HTML on the fly but the call to the Dbhash library seems to interfere
: > with this process. The script returns all the generated HTML up to the
: > following line:
: >
: > db = Dbhash("test_dbhash", 'r', 0600,1024,32)
: >
: > none of the generated HTML is returned after this point. If I run the
: > script at the shell promt it works and the generated HTML is legal.
: >
: > Does anyone know what's happening?
: It's almost certain that your script hits an exception at this point
: (it's happened to me many times :-)
THis is a real pb, isn't it ? Debugging cgi script is a pain !!
The solutions proposed by Guido looks good.
Does somebody developped a complete environnment to debug
cgi scripts (I don't know what is a complete debugging
environment, but I would love something which allow to test
a script with http and points out where is the error !!)