Re: mysql_connect() with a multi-file format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I read in the php.net manual that the connection closes automatically
> when the script exits.  Does this mean I can't open a db connection in
> one file and pass the link around from function to function?

No, the script you include becomes part of the main script calling the
inclusion, therefore the connection stays open 'til you explicitly
close it, or your main script exits.

cheers

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux