Other articles

  1. Disabling PHP's register_globals in userland

    So you have a large PHP deployment that is (still? - this is 2008!) using register_globals. How do you test individual pieces of the site without being able to change the ini variable via .htaccess? Try this code out:

    <?phpif (ini_get('register_globals')){        $__sgs = array('_ENV', '_GET', '_POST', '_COOKIE', '_SERVER');        foreach …
    read more