Please wait while we load your page...
 

Announcements

HTACCESS Magic :: Article :: Disable Magic Quotes





Results 1 to of

Disable Magic Quotes

What are Magic Quotes? Magic quotes is a controversial feature of the PHP scripting language, wherein strings are automatically escaped (special characters are prefixed with a backslash) before being passed on. It was introduced to help newcomers write functioning SQL commands without requiring manual escaping. It's preferred to code with magic quotes off and to instead escape the data at runtime, as needed.

You can disable magic quotes via editing your PHP configuration file (php.ini). If you cannot do this, you can disable via .htaccess by adding the following line to your .htaccess file:

php_flag magic_quotes_gpc off


Last Revised: 2015-08-25

Live Chat Not Available