Link to home
Start Free TrialLog in
Avatar of mdeek
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 ?

Avatar of Beverley Portlock
Beverley Portlock
Flag of United Kingdom of Great Britain and Northern Ireland image

Just add the following line to .htaccess

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

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

Open in new window

php_flag register_globals off


D*mn! It is going wrong today...... :-O Ignore the <code> stuff

php_flag magic_quotes_gpc off
php_flag register_globals off
Avatar of mdeek
mdeek

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 .
Avatar of mdeek

ASKER

i just tried that and it gives me a server error of 500 :(
ASKER CERTIFIED SOLUTION
Avatar of mdeek
mdeek

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial