PX : code

Register Globals function by Hamish Milne
Download this code


<?php
/**********
Register Globals
Registers entire $GLOBALS multi-dimensional array as seperate variables.
Made by Hamish Milne
**********/
function register_globals(){
    foreach(
$GLOBALS as $v){
        foreach(
$v as $k=>$vv){
            global $
$k;
            $
$k=$vv;
        }
    }
}
?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.