I need to load a PHP file into a variable. Like include();
include();
I have loaded a simple HTML file like this:
$Vdata = file_get_contents("textfile.txt");
But now I need to load a PHP file.
Alternatively, you can start output buffering, do an include/require, and then stop buffering. With ob_get_contents(), you can just get the stuff that was outputted by that other PHP file into a variable.