Simple (Q) how to put globals off WITHOUT touching the .ini

From: Date: Sat, 03 May 2003 11:28:48 +0000
Subject: Simple (Q) how to put globals off WITHOUT touching the .ini
Groups: php.general 
Request: Send a blank email to php-general+get-146251@lists.php.net to get a copy of this message
Hi, I have (hopefully) converted my script so it will work with register globals off too, I will never know till i test it but my host has register globals on and they wont touch the php.ini file for me... Is there any "proper" way of putting register globals off without touching the php.ini file? I got this on one website: (put a .htaccess file in the directory you are working with) .htaccess: php_flag register_globals Off on another website: put this right on top of your pages: ini_set('register_globals','off'); Which is more effective? Cheers, -Ryan

« previous php.general (#146251) next »