|
-
Dec 31st, 2006, 09:44 PM
#1
Disable Globals locally?
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!
-
Dec 31st, 2006, 10:05 PM
#2
Re: Disable Globals locally?
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
-
Jan 1st, 2007, 01:54 PM
#3
Hyperactive Member
Re: Disable Globals locally?
 Originally Posted by penagate
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|