I have moved my site to a new server and I have noticed strings returned from the database that have quotes in them are automatically escaped with a backslash, so I have this appearing in my HTML out output \' where ever there is a quote – I am wondering what is causing this, a PHP directive?
What directives in PHP or anything else would cause this?
Thanks all for any help
better use:
var_dump(ini_get('magic_quotes_gpc'));this will result in: string(1) “1” if enabled, or string(0) “” if disabled.
im suspecting you’ll get the first option displayed in your script so you’d probably want to include this:
in a .htaccess file. Assuming your host allows override by .htaccess this should be fine.