Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
This should not be here, it should be done globally in the beginning of the PHP execution, there are quite a few snippets posted here, and even some recent discussions iirc. Otherwise it's okay.