mdeek
asked on
How to set php_flag in .htaccess files
I want to set some php_flag in the .htaccess file sofar i have had no luck.
the site is running on a virtual box and i do not have access to the php.ini nor do i have shell access.
however the site needs to have register_globals switched off i also want to turn magi quotes off cause its messing up the output.
could someone post me a .htaccess file with those flags in it turned off so i can see if it will wiork on my site ?
the site is running on a virtual box and i do not have access to the php.ini nor do i have shell access.
however the site needs to have register_globals switched off i also want to turn magi quotes off cause its messing up the output.
could someone post me a .htaccess file with those flags in it turned off so i can see if it will wiork on my site ?
Hmmm typo time... The sentence in the previous post should end with "...allows you to set values in .htaccess"
Not my day for reading things..... I've just noticed you wanted magic quotes off as well
php_flag magic_quotes_gpc off
php_flag register_globals offD*mn! It is going wrong today...... :-O Ignore the <code> stuff
php_flag magic_quotes_gpc off
php_flag register_globals off
ASKER
do i have to restart the webserver in order for that to take effect ?? cause i cant do that dont have access for that .
ASKER
i just tried that and it gives me a server error of 500 :(
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
php_flag register_globals 0
make sure .htaccess has a "." in front of it and that your ISP allows you to st values in .htaccess