The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Including global.php clears all my variables
I've been including global.php from a script in another directory in order to access $vbulletin login information. However, I've realized global.php keeps clearing any variables I set and the only way to keep them around is to store them in a session. Why is it doing this, and is there a way I can make it stop? Thanks.
|
#2
|
||||
|
||||
What variables? Superglobals?
|
#3
|
|||
|
|||
I'm not particularly advanced in PHP. All I know is that anything I set before requiring globals.php gets unset after the include.
I found a thread dating to 2004 in which a vB staff member said Quote:
If I were to do the following… PHP Code:
|
#4
|
||||
|
||||
Then.... include global.php at the beginning of your page before you set the variables?
|
#5
|
|||
|
|||
Quote:
Thanks. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|