![]() |
what does shutdown_query do?
PHP Code:
|
PHP Code:
|
that went right over my head.
let's simplify ->query( // you'd use for a loop ->query_first( // standard query ->shutdown_query( // ??? |
You know what, I have absolutely no idea. It appears that it's a feature designed to run queries after the page has rendered. All the queries in shutdown queries are not run at that particular part of the script I can tell you that. If you look at exec_shut_down() in functions.php you'll see what happens. However, I can't find any reference to that function being run anywhere in any of the vB files :)
Who knows... maybe I'm overlooking something |
Lol, you should read the how-to's :D
https://vborg.vbsupport.ru/showthread.php?t=75207 With great thanks to Bruce.Lee :D :D |
I just checked again, and that function is not being called anywhere according to ultraedit!
|
And I thought UltraEdit was a good software ^.^
admincp/global.php PHP Code:
PHP Code:
PHP Code:
Or did you mean exec_shut_down? functions.php PHP Code:
PHP Code:
|
No no no no.... ;)
Ok those queries are passed to the method with db_mysql.php, and either ran at that exact time or stored in an array. This array is then released by the method with a global call and acn be used anywhere else in the script. There is then no reference to where-else these queries are ran. So they must be run at that exact point in the script. Do a search for $shutdownqueries and you tell me where they are run, in exec_shut_down. Ok then tell me where this function is ran ;) Follow? |
Revised my last post to include the references for exec_shut_down
|
Weird I don't have those lines in my functions.php?
|
thanks all, that's perfection :)
btw i only just found out you could search folders for strings, that's :cool: |
Hmm, you should have as I just pasted thos from a fresh downloaded archive.
The 2nd is almost at the end of print_output() |
If possible a shutdown function called 'exec_shut_down' is registered with the use of the PHP function 'register_shutdown_function'.
In the function ''exec_shut_down' the queries are executed. PHP Documentation on 'register_shutdown_function': Quote:
|
All times are GMT. The time now is 09:35 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:
|