Re: Assigning the contents of a file to a variable

From: Date: Thu, 11 Apr 2002 09:20:51 +0000
Subject: Re: Assigning the contents of a file to a variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92533@lists.php.net to get a copy of this message
In article <00bc01c1e131$7a7bb7e0$1301a8c0@doghouse.ed>, ebailey@doghouseconsulting.com (Edward R. Bailey) wrote: > I want to assign the contents of a separate file (a web page) to > $message instead of inserting the contents of the file as a string in > the actual script. I want the body of the email to come from a separate > file to help make changing the body of the email easier too. I tried > using - > > readfile("includes/news.html") > > But that did not work and instead inserted file into the actual webpage > instead of the email. > > Does anyone have an idea or suggestion? <http://php.net/file> or <http://php.net/fread> -- CC

« previous php.general (#92533) next »