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

From: Date: Sat, 03 May 2003 11:54:33 +0000
Subject: Re: Simple (Q) how to put globals off WITHOUT touching the .ini
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146256@lists.php.net to get a copy of this message
On Saturday 03 May 2003 19:28, Ryan A wrote: > 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? The former because the latter would not have the desired effect. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Adopted kids are such a pain -- you have to teach them how to look like you ... -- Gilda Radner */

« previous php.general (#146256) next »