Problems with require() and variables
Phil Powell
soazine at erols.com
Wed Jan 15 23:32:44 EST 2003
Consider this:
I have display.php, a script that will do XML parsing into an array and display its contents.
I have view.php, a script that will include display.php and have to manipulate the variables within display.php for itself.
So in view.php I have:
require('/.../.../display.php');
However, when display.php finishes being "required", I lose all of my variables that I need for view.php. How do I retain them?? How can I ensure that these variables in display.php will also exist in view.php?
Thanx
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030115/05f3a314/attachment.html>
More information about the talk
mailing list