Learning PHP and MySQL
Example 12-7 Checking for magic quotes
<?php
if (get_magic_quotes_gpc()) {
echo "Magic quotes are enabled.";
} else {
echo "Magic quotes are disabled.";
}
?>
The script should return:
Magic quotes are enabled.
Posted by on 09/25 at 11:10 AM
Next entry: Cross-Site Scripting Attacks
Previous entry: SQL Injection