Test if Magic Quotes are Turned On

The key to turning them off is using a php.ini file.
But the php.ini file must be put in each directory where it is needed.

Uses this function to see if they are turned on:
if(get_magic_quotes_gpc()) {
	echo "Magic quotes are enabled";
} else {
	echo "Magic quotes are disabled";
}
Answer here =>