Basically I want to run a PHP file from another PHP file to get the output as a string. I also want to be able to pass variables into it.
For example:
$result = get_output('./otherfile.php', $vars);
I have no idea how to do it. any help would be really appreciated.