are you using php as a cgi or a sapi? is the script being run across a web-browser or locally as a command-line?
typically connections do stay open within the execution life of a script. however the scope of variables is not so global. depending how you are addressing your db connections, you might have to make the resource handles global. the php manual is excellent on variable scope.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.