How to process a local file rather than just read it
- From: ashepster@xxxxxxxxx
- Date: 28 Oct 2005 09:32:27 -0700
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 -
.
- Prev by Date: Re: How to connect to MySQL
- Next by Date: Re: Question on PhP, MySQL
- Previous by thread: varaible passed through URL is not in $_GET array
- Next by thread: Re: How to process a local file rather than just read it
- Index(es):
Relevant Pages
|