I need to load a PHP file into a variable. Like include();
I have loaded a simple HTML file like this:
$Vdata = file_get_contents(\"text
Theoretically you could just use fopen, then use stream_get_contents.
$stream = fopen("file.php","r");
$string = stream_get_contents($stream);
fclose($stream);
That should read the entire file into $string for you, and should not evaluate it. Though I'm surprised that file_get_contents didn't work when you specified the local path....