Re: Read an HTML file into a variable...
| From: | Andy Hoffman | Date: | Fri, 03 Nov 2000 15:28:46 +0000 |
| Subject: | Re: Read an HTML file into a variable... | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3669@lists.php.net to get a copy of this message | ||
Yoeri De Bruyn wrote:
> Hi phpeers!
>
> I need to get all the content of a HTML file (as it is with all its tags and
> stuff) into a variable.
> When I do fopen($file_name, "r") and fgets($newFile, 255), only the
> characters which are not btween '<' and '>'.
>
> What's goin' wrong?
>
> Any tip or trick or example will be very appreciated!
> kr,
> Yoeri.
Yoeri... when you say it's not getting anything between '<' and '>',
do you mean
that if you echo the string back you don't "see" any of this in your browser
window, or it isn't even showing in your source of that generated output... How
are you verifying that any of the tag code isn't loading?
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
email: andy.hoffman@bms.com