Hi,
I have a main (index.php) file wich includes two other files, like this:
<?PHP
require_once "data.php";
require_once "program.php";
?>
The file "program.php" sould read variables from "data.php" and print them. But it only works if I declare all "data.php" variables in "program.php" using the global statement.
It's very anoying, since the goal is to keep variables and program appart. If I have to declare them as globals in "program.php" it's like doing all the work twice.
How can I make one required file see variables as globals? Why is this happening?
HELP!
--Malu