![]() |
How did vbulletin close the database
I can't see any db close statement in php files like showthread.php. I wrote my own php file which uses the $db object, does it look right? Thanks!
PHP Code:
|
Closing the database with the close like you have it isn't needed unless it's a persistent connection. A regular database connection is automatically closed at the end of execution of the script.
|
Many thanks for your reply!
|
$db->close() is called in most vb scripts - it's in function exec_shut_down() which is called from print_output(), which is the last function called in most scripts. (You can see it in the eval() at the end of showthread.php).
|
Thanks for the detailed explanation, Kevin!
|
All times are GMT. The time now is 03:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|