diff --git a/reference/info/functions/get-magic-quotes-gpc.xml b/reference/info/functions/get-magic-quotes-gpc.xml index e2ae8731d2..a7031147f4 100644 --- a/reference/info/functions/get-magic-quotes-gpc.xml +++ b/reference/info/functions/get-magic-quotes-gpc.xml @@ -1,5 +1,5 @@ - + @@ -58,38 +58,8 @@ $sql = "INSERT INTO lastnames (lastname) VALUES ('$lastname')"; - In the interests of writing portable code (code that works - in any environment), or, if you do not have access to change - php.ini, you may wish to disable the effects of magic quotes - on a per-script basis. This can be done in two ways, with a - directive in a &htaccess; file (php_value magic_quotes_gpc 0), - or by adding the below code to the top of your scripts. - - Disabling magic quotes at runtime - - -]]> - - - Magic-quotes was added to reduce code written by beginners from being dangerous. - If you disable magic quotes, you must be very careful to protect yourself from - SQL injection attacks. + For more information about magic_quotes, see this + security section. See also addslashes,