Hello,
I have to run a file in another file. You know:
include("file.php");
But I need to have a value with the file.
include("file.php?value=yes");
But this can include not, right? But how can I so do it???
//Ulrik Q K
Use require(page.php);. This will replace the require function, with the included page when the script is parsed. So any variable in the parent script should be available to the included script at parsing.
This is also true when you use include. Both require and include make the code that you require/include part of the script that executes the require/include. So any variables set in the parent script are also available in the required/included scripts.
Thanks both! But the problem is bigger than I believed!