News for hackers. Stuff that matters.
Re:I Like PHP by pornel on Wednesday August 10, 2011 @03:14PM (#2869735)
It's an XSS-prone templating language, as the default correct syntax for outputting variables is:

     <?php echo htmlspecialchars($value, ENT_QUOTES);?> 
which is far from encouraging safe best practices.

PHP namespaces aren't any better: http://pornel.net/phpns

Re:I Like PHP by shiflett on Wednesday August 10, 2011 @05:23PM (#2870259)
Actually, you should also always indicate the character encoding, for reasons I explain here:

http://shiflett.org/blog/2005/dec/google-xss-example

Re:I Like PHP by pornel on Thursday August 11, 2011 @05:11AM (#2872075)
Yes, declaration is necessary, but not in the htmlspecialchars() call if you're using ASCII-superset encoding (and you really should declare UTF-8, never UTF-7).