RE: [PHP-WIN] Read an HTML file into a variable...

From: Date: Fri, 03 Nov 2000 15:16:46 +0000
Subject: RE: [PHP-WIN] Read an HTML file into a variable...
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-3667@lists.php.net to get a copy of this message
Hi Yoeri, > 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 '>'. > just do the following: <?php $filevar = implode('',file('file_name_to_get.html')); // now you've got everything in $filevar ?> have fun, Matthias

« previous php.windows (#3667) next »