Results 1 to 3 of 3

Thread: Disable Globals locally?

  1. #1

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    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!
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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

  3. #3
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    354

    Re: Disable Globals locally?

    Quote 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
  •  



Click Here to Expand Forum to Full Width