Re: Register globals on and off

From: Date: Sun, 02 Feb 2003 02:35:58 +0000
Subject: Re: Register globals on and off
References: 1  Groups: php.general php.windows 
Request: Send a blank email to php-windows+get-18293@lists.php.net to get a copy of this message
I've read that an include file in each of your pages with the lines below should do the trick for you with register_globals OFF.. Not sure if this is a valid way to go though... <?php extract($_SERVER); extract($_ENV); extract($_GET); extract($_POST); extract($_REQUEST); ?> Regards, Pat "Davy Obdam" <info@davyobdam.com> wrote in message news:3E38CBAF.1010501@davyobdam.com... > Hello people, > > On my development machine (win XP/Apache 2.0.44/PHP 4.3.0/MySQL 3.23.55) > i have several websites that i made some time ago that require register > globals to be On in the php.ini. Ofcourse i know thats not a good idea > at all for security, but rewriting all this code is not an option. > However in my php.ini i have set register globals to Off because that > better. Is it possible to configure my webserver/php so that only those > sites that require register globals to be On have that setting, for > instance in a .htacces file?? Any help is appreciated:-) > > Best regards, > > Davy Obdam > mailto:info@davyobdam.com > >

« previous php.windows (#18293) next »