I want to be able to open any specified file on my site, and be able to read the contents.
I was looking at fopen and passthru, but couldn't quite get it to work.
If the user tries opening a .php page, is it possible to read the contents of the page as though it had already been output to the screen? So, for instance, an echo statement would be considered to have been echoed, and thus when reading the file, the word echo wouldn't be seen.
Cheers,
David