Re: Please Help!!!! - Really BASIC stuff!

From: Date: Tue, 06 Mar 2001 21:05:34 +0000
Subject: Re: Please Help!!!! - Really BASIC stuff!
Groups: php.general 
Request: Send a blank email to php-general+get-42806@lists.php.net to get a copy of this message
There are loads of different ways to spit out a text file. The easiest is readfile($Filename) which does exactly what you want, providing that the file already contains sanitised html (eg <br> instead of newlines etc. If not, you could use fread to get the file contents into a variable and then process them as you wish (eg with nl2br etc). No doubt, you will be told another hundred ways to do it as well :) Cheers PS Interesting postal address - I frequent the Beeswing pub on Hull Rd every Thursday evening with members of the old car club I'm in! -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org

« previous php.general (#42806) next »