PHP and Super Global Arrays

Posted by kris on February 03, 2008

The problem with the PHP super global arrays, such as $_GET and $_POST is they contain the raw query parameters that the browser passes. I’ve seen more than my fair share of abuse when fixing clients apps where they have not properly sanitized user input, which leads to SQL inject and XSS attacks. Continue reading…

PHP Factory & Singleton

Posted by kris on June 12, 2007

A friend sent me an ICQ today asking an easy way to load classes on the fly, but keep a registry of them to save resources if he calls said object more than once per page load. Here is the quick example I gave him:

Continue reading…


sid-1
IMG_2283
IMG_2280
IMG_2271
IMG_2247
IMG_2234
IMG_2140
IMG_1515
Close
E-mail It