I am using a type of CMS system, you can call up various details from the front end on any page by using "tags" so [user_firstname], [user_e-mail] etc is automatically recognised in a text field and displays the data for the user logged in.
I have a list of a few of these variables that I can use within bits of PHP in the backend of the CMS to take the "tag" of the user logged in and pass it to a database etc...
I can generate a new one of these variable things by doing this (e.g. take some data from a datbase and pass it to a "variable" to be picked up by page:
Code: Select all
//Pass active variable to tag
$MyVariable = $some_variable;
setVar ("myvariablename", $MyVariable);
Is there any way in php code that I can call up all variables on a given page and list them so I can see what I have?
I have managed to do this:
Code: Select all
reset( $GLOBALS );
while( list( $name, $val ) = each( $GLOBALS )) {
echo "$name: $val<BR>";
}
How can I see what is actually in the variable arrays?GLOBALS: Array
_POST: Array
_GET: Array
_COOKIE: Array
_FILES: Array
_SERVER: Array
_REQUEST: Array
_ENV: Array
val: Array
name: val
Once I know the tags that are available I can use them to build ontop of the CMS to make it do what I want it to do!
Help will be really appreciated im getting myself mightely confused over this!