How to check your magic quotes configuration

If you want to check your magic quotes setting, you can use the PHP function get_magic_quotes_gpc. This function gets the current configuration setting of magic quotes gpc and returns 0 if magic quotes are off, 1 otherwise.

To find out your current magic quotes configuration simply create a PHP file with the following code:

if(get_magic_quotes_gpc()) {
    echo 'Magic Quotes is On';
}
else {
    echo 'Magic Quotes if Off';
}

Comments are closed.