in reply to Re: CGI and DBI
in thread CGI and DBI

Hi, I can run the script from the command line which runs successfully after about 4 seconds.
I thought the issue was with my personal firewall but I have switched that off now and that has made no difference.

Replies are listed 'Best First'.
Re^3: CGI and DBI
by hmerrill (Friar) on Nov 29, 2004 at 19:35 UTC
    Did you do as I suggested and trim your script down to just display a message and NOT do the database stuff? Doing this will reveal whether your problem is webserver permissions related. Get your bare-bones cgi script (that just displays a message) to work in the browser first, and *THEN* try adding in the database stuff.
      Hi, I tried the trimmed down version of the code and this works ok. Thanks
        I don't know why your connect would take a long time - doesn't make sense to me. I'd try one more thing - put prints both before and after your connect - each print should print the current time. That will tell you exactly how much time your connect takes. Run your script with those prints a few times, and post the results here.