PDA

Click to See Complete Forum and Search --> : Disable Globals locally?


Kasracer
Dec 31st, 2006, 08:44 PM
My server uses globals so, unfortuantely, $_GET['MyVar'], $_POST['MyVar'] and $MyVar all mean the samething.

There is no way I can get them to disable this (as was the same on all other hosts I've belonged to).

Is there a way to disable this locally? i.e. inside of my PHP file?

Thanks!

penagate
Dec 31st, 2006, 09:05 PM
I don't think $_GET and $_POST should ever contain the same values.

There are some code snippets on the php.net page for Register Globals that should help you.

http://au.php.net/register_globals

superbovine
Jan 1st, 2007, 12:54 PM
I don't think $_GET and $_POST should ever contain the same values.

There are some code snippets on the php.net page for Register Globals that should help you.

http://au.php.net/register_globals

nice follow up.

http://www.thescripts.com/forum/thread2623.html