floridaflatlander Posted October 25, 2011 Share Posted October 25, 2011 I built something on my local host and when I loaded it to my online provider I started to get back slashes in front of my single quotes on data I placed in the database, example word\'s The provider is running 5.2.9 on their server, I checked and magic_quotes_gpc is on, I thought this was old school. Can I turn if off ? I clean by data with strip_tags() & mysqli_real_escape_string() I found this http://php.net/manual/en/security.magicquotes.php Thanks Link to comment https://forums.phpfreaks.com/topic/249773-should-magic_quotes_gpc-be-on/ Share on other sites More sharing options...
trq Posted October 25, 2011 Share Posted October 25, 2011 You can turn them off via ini_set or a .htaccess directive or edit the php.ini file if you can. Link to comment https://forums.phpfreaks.com/topic/249773-should-magic_quotes_gpc-be-on/#findComment-1282059 Share on other sites More sharing options...
floridaflatlander Posted October 25, 2011 Author Share Posted October 25, 2011 Thanks Link to comment https://forums.phpfreaks.com/topic/249773-should-magic_quotes_gpc-be-on/#findComment-1282214 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.