hello all -
I am seeing some strange behavior using require_once. Basically, the page i am requiring is not able to read the $variables i have set:
<page1.php>
$foo = bar;
require('page2.php');
<page2.php>
if ...
require(page3.php)
<page3.php>
echo $foo
Result: UNDEFINED VARIABLE '$foo' ....
Anyone have any suggestions on this??? page2.php can read the $foo fine. I am lost as to why this wont work.
thanks