How to pass parameter to included file? I tried the following, but that did not work.
include "myfile.php? var = 123";
and in myfile.php, I am trying to get a parameter using $ _GET ["var"].
include "myfile.php?var=123"; will not work. PHP searches for a file with that exact name and does not parse the parameter
for this i also did this:
include "http://MyGreatSite.com/myfile.php?var=123"; but it also does not work.
Any clues? Thanks.
PHP Ferrari
source share