Re: register globals not working

From: Date: Thu, 25 Oct 2007 10:59:54 +0000
Subject: Re: register globals not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-263640@lists.php.net to get a copy of this message
I have installed php v5 on a windowsXP PC. Server is Apache 2.2. Even though I have turned register globals on in the ini file, the php is still not allowing the use of $HTTP_GET_VARS (and probably other similier variables), and I am having to change my existing script to $_GET before they will run. Any idea why the directive is being ignored? Rodney Courtis
On? Register globals is widely considered to be a security hazard. Ideally you should be using the $_GET etc variables instead. Anyhoo the $HTTP_*_VARS are (IIRC) controlled by the track_vars directive. So turn that on, restart Apache, and then try. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support

« previous php.general (#263640) next »