Are magic quotes on?
One way to check if magic_quotes is running is to run get_magic_quotes_gpc(). It will return a 1 if it is on, or a 0 if it is off. You can use this result to print out the magic_quotes status, or to decided if you should run another function, such as addslashes.
< ?php
if (get_magic_quotes_gpc()==1)
{
Print “Magic Quotes gpc is turned on” ;
}
else
{
Print “Magic Quotes gpc is turned off” ;
}
?>
What I'm Doing...
- Am I getting old, is it my stinking cold, or are captcha's getting harder? 1 day ago
- Still feeling pretty rotten but determined to get at least a couple of things off this list today! 1 day ago
- Not really looked properly at EC2 in a long time, but all @lgladdy 's tweets about it are pushing me in that direction again, any good tips? 1 day ago
- Android why can't I create a repition of a calendar event every other week? I can do weekly, every xth of the month but not every other! 2 days ago
- Get a private beta invite for Connect.Me. It's your reputation card for the social web http://t.co/ZWV66HMM 2 days ago
- More updates...


