I want to require/include a file and retrieve its contents into a variable.
test.php
Use shell_exec("php test.php"). It returns the output of the execution.