including files
Posted: Mon Nov 21, 2005 9:27 pm
Is there any way I can inlcude a PHP file with a few $GLOBALS inside a function...but...
I need those globals to be ONLY visible inside the scope of the function
When the function ends...the globals are removed....
I know $GLOBALS are considered super globals...they reach scope of every module...
But is there a way to circumvent this issue using eval and fopen or something???
Or does this technique still cause the globals to become super globals???
p.s-THEY NEED TO BE $GLOBALS nothing else!!!
Cheers
I need those globals to be ONLY visible inside the scope of the function
When the function ends...the globals are removed....
I know $GLOBALS are considered super globals...they reach scope of every module...
But is there a way to circumvent this issue using eval and fopen or something???
Or does this technique still cause the globals to become super globals???
p.s-THEY NEED TO BE $GLOBALS nothing else!!!
Cheers