You need to use Apache::DBI, which requires nothing but a few substitutions in your apache config and source; this will maintain a persistent connection to a database for all DBI-based perl scripts run by apache.
-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
It's not what you know, but knowing how to find it if you don't know that's important
| [reply] |
Are you using mod-perl? If so read Masem's post above. Otherwise, are you calling $dbh->disconnect after your done with your query? It should implicitly call disconnect when the script exits, but its better to do it yourself. | [reply] [d/l] |