In my php page, I recieve a bunch of get parameters. can a file I include read these too?
+5
A:
can a file I include read these too?
Yes. An included file behaves like normal code in the original file, with all the original variables and scope intact.
The only differences are the __FILE__
, __DIR___
and __LINE__
constants that will point to the include file's path and directory.
Pekka
2010-06-10 10:58:19
Thanks. Just checking.
Eric
2010-06-10 11:19:20