The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Declaring, globalicing, variabling, etcing
I am working in a hack of /forum/subscriptions.php and I need to use 2 variables several times in a php script.
I declare them in "($_REQUEST['do'] == 'list')" section and they work but in the next section, "($_REQUEST['do'] == 'orden')", they are not. I think I need to globalize them (1 variable and 1 array) but I don´t know how or when: Before declaring the variables? After declaring? In the first section? In the second? As $_POST? As $_REQUEST? Perhaps they are silly questions but not for me. I learn much better with examples than with manuals. Thanks in advance |
#2
|
|||
|
|||
If you will only use the variables inside 1 if-statement, it should be placed there. If you use it on more places, you could define it before other processing, or on each place you need it.
|
#3
|
|||
|
|||
Thank you, MarcoH64.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|