Vermillion Posted December 19, 2008 Share Posted December 19, 2008 My apologies for the question I should know by now, but I never learned about PHP's configuration file. What exactly ARE magic quotes? People tell me I use them and I should avoid them for PHP 6, but I can't avoid something I don't know. Link to comment https://forums.phpfreaks.com/topic/137639-enable_magic_quotes/ Share on other sites More sharing options...
.josh Posted December 19, 2008 Share Posted December 19, 2008 http://us3.php.net/magic_quotes Link to comment https://forums.phpfreaks.com/topic/137639-enable_magic_quotes/#findComment-719417 Share on other sites More sharing options...
Vermillion Posted December 19, 2008 Author Share Posted December 19, 2008 Okay, thanks, though I am still confused a bit: <?php $rstring = "So 'this' will use magic quotes?"; $rstring2 = "But \'this\' will not?"; ?> Link to comment https://forums.phpfreaks.com/topic/137639-enable_magic_quotes/#findComment-719428 Share on other sites More sharing options...
trq Posted December 19, 2008 Share Posted December 19, 2008 Magic quotes automtically adds slashes to all $_POST, $_GET and $_COOKIE data. This was written originally to aid in inserting this data to into a database by giving a basic form of character escaping. Of course its never a good idea for a language to manipulate input data automatically. Its best you escape your data properly yourself. Link to comment https://forums.phpfreaks.com/topic/137639-enable_magic_quotes/#findComment-719449 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.