The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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:
|
#2
|
|||
|
|||
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.
|
#3
|
|||
|
|||
Many thanks for your reply!
|
#4
|
|||
|
|||
$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).
|
#5
|
|||
|
|||
Thanks for the detailed explanation, Kevin!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|