Web >> Development >> PHP >> How to prevent quotes and other quote printable characters from being escaped automatically with backslash

make sure the variable magic_quotes_gpc is set to Off. Verify this by calling phpinfo() function on your web directory and checking the value of magic_quotes_gpc is set locally to Off Following are possible ways to change (1) put a .htaccess file on that directory containing php_value magic_quotes_gpc 0 References ========== None