Posted by ashepster on 11/11/47 11:30
I can read a local file with
fopen("myFile.php");
However this gives me the source of the file (i.e. php code). I want
to get the results of the file after it has been evaluated (i.e. HTML).
The obvious way of doing this is
include 'myfile.php';
However, I want to process the evaluated result. For example:
echo htmlentities( include 'myfile.php' );
This doesn't work because the result of the include statement is true
or false rather than a string.
I'm sure this is very simple, but I'm just learning.
- Jeff -
Navigation:
[Reply to this message]
|