Say I have:
<!--- global.inc --->
$myVar = "globalVar";
<!--- index.php --->
include("global.inc");
echo $myVar;
Does this require register_globals to be on? Is there a more secure method of doing this? $_GET['myVar'] maybe?
I know that say "index.php?myVar=globalVar" would require register_globals to be on but what if the global variable is in an include file?
Thanks,
Matt