Simulating regiser_globals = on

This simple script registeres globals, everything you need is to include this code at the begining of your PHP script.

<?php
// This script registers globals
// Written by Piotr Polak
// Homepage: www.pepis.prv.pl
// Date: 14-11-2004, 15:32
// (c) PepisDesign 2004
//
// To add this script to your document
// use the following function before
// each script:
// require('register_globals.php');
//
foreach($GLOBALS as $global_vars) {
	foreach($global_vars as $global_name => $global_value) {
		$$global_name = $global_value;
	}
}
?>

Using register_globals should be avoided.

Powered by PepisCMS