The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Question about unset()
Hi,
I'm not a professionnal coder, but with permission from the original author, I have modify this code (Display ban reason on error page) to fit my needs (Show time remaining for a temporary ban on forum home). Everythings work great, but i'm really not sure about the memory saving tag: unset(). Must we put every variable that we have created (and don't need to show) in this??? Here's my code: PHP Code:
PHP Code:
Thank you very much!!! (Note: With the original author permission, when this question will be answered, I will probably release this as a hack. I have see many request for something like that...) |
#2
|
||||
|
||||
you don't have to unset every variable, as at the end of the script this will be done automatically.
just if you ahve very big arrays you won't use anymore you should do the unset to save memory |
#3
|
||||
|
||||
Great!
So, I think I will only unset $fnbanneduser (related to my query). Thank you very much for your fast answer! |
#4
|
||||
|
||||
yep
you're welcome |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|