2012-06-10
2012-06-10
Zero Percent Game Dev - Me Vs. Magic Quotes: Round Two: Fight
So PHP back in the day made a thing to automatically backslash-escape sensitive characters like apostrophes to keep people from fooling your database into interpreting inserted values as code. That was long ago, before anybody knew how to use a computer, and now the consensus is hey PHP, I know what I'm doing, your backslashes just generally cause problems and I don't like them so you should stop. So they did. This whole 'magic quotes' thing went away, got deprecated. But some servers still have it enabled as a safeguard to keep their clients from goofing up and allowing all kinds of insertion attacks. As you can see if you're reading the RSS feed, magic quotes are enabled and I just haven't spent the time to work around them until now. But stripslashes() isn't working for some reason so I'll have to spend more time figuring it out. BUY THE NEW HUMBLE BUNDLE RIGHT NOW, there are only three days left. It's so cool. S&S is fantastic. Also all the other games too.