This article describes how to enable and disable the magic quotes directive in a custom php.ini file.
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:
magic_quotes_gpc = on
To disable this functionality, modify the magic_quotes_gpc directive in the php.ini file as follows :
magic_quotes_gpc = off
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.