Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: CGI and DBI

by hmerrill (Friar)
on Nov 29, 2004 at 19:35 UTC ( [id://411022] : note . print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re^4: CGI and DBI
by howarda (Acolyte) on Nov 30, 2004 at 09:38 UTC
    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.