Re: Register Globals Off in .htacces
| From: | Frank W. | Date: | Fri, 25 Oct 2002 14:14:46 +0000 |
| Subject: | Re: Register Globals Off in .htacces | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121429@lists.php.net to get a copy of this message | ||
well, i found my mistake ;)
on windows i forgot to change the name of the .htaccess-files because on win they couldnt have a extentsion without a name.
So i've named them now only "htaccess" without the dot and it works fine
Frank W. wrote:
it works only if i put it in my httpd.conf - yes allowoveride is set to all :/ i'm using apache 1.3.27 on win2k. Jon Haworth wrote: Hi,Thx for your reply It is working.No probs, glad to help.I also found from php.net that it's possible to set register_globals to "off" on a site-by- site basis via Apache, thus overriding the "global" setting of register_globals in php.ini: ServerName localhost DocumentRoot /var/www/html/mysite php_value register_globals 0 (or 1 for "on")Yup, or even in directories: php_value register_globals 0 Which might be handy if you're updating scripts on a live site. Cheers Jon