Forum Moderators: coopster
<?
if(get_magic_quotes_gpc()){
echo "on";
}else{
echo "off";
}
?>
this is in php.ini
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = off; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = off
; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = off
and this is in .htaccess (whole file)
php_flag magic_quotes_gpc Off
AddType video/avi .avi
AddType video/mpeg .mpeg
AddType video/wmv .wmv
Is it case-sensitive? If so, try 'Off' (capital 'O') - as you have in your .htaccess file.
Also seen mentioned, if "php_flag" doesn't work in .htaccess, try "php_value" instead?
PHP Manual: Disabling Magic Quotes [uk2.php.net]
see the funny thing is, turning off magic quotes works flawlessly on one of my servers. a simple edit to the php.ini and bam (no restartts required)!
however, there's something going on with this other server thats either not reading the php.ini or something...idk.
It does not work that way
probably when you hit save then it auto-restart Apache
second part: "not reading the php..."
you are not editing the good one
depending on server setup you might see a few php.ini
sym link etc...
so you'll be better of asking your ISP
for that php.ini location.
It does not work that way
Actually, it depends on the installation. Take CGI for example. Some hosting providers use a cgi-wrapper for every PHP request. Details on the Runtime Configuration [php.net] page.