Using PHP magic quotes directive
When the magic quotes directive is enabled, PHP automatically escapes data from HTTP GET and POST requests and cookie data. For example, if a user types “hello” (with the quotation marks) in a form, PHP automatically escapes the quotation marks and stores the value as “hello”. To enable this functionality, use a text editor to modify the magic_quotes_gpc directive in the php.ini file as follows:More information
- To view a complete list of php.ini directives, please visit http://www.php.net/manual/en/ini.list.php.
- For more information about the magic quotes directive, please visit http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc.