I have bitnami
stack on EC2
instance, I want to turn off magic quote
s, but in the php.ini
I cant find the option to turn off.
I have seen how to turn off magic quotes through code but if I do
echo 'Value for '.get_magic_quotes_gpc();
It only echoes Value for
Any help in this regard
get_magic_quotes_gpc
returns a booleanfalse
if it is off. do something like this:As reply to your comment:
The manual clearly states:
so if you call that function you get either a true result (it is on) and print that it is on with above line of code or the other way around. It returns false for newer versions, because it is always off in those functions.
If you get the 'else', that means it returns a false condition, meaning it is of. I can't explain it more: if false, then off. simple as that :)