RE: [PHP] opening files

From: Date: Tue, 01 May 2001 19:59:50 +0000
Subject: RE: [PHP] opening files
Groups: php.general 
Request: Send a blank email to php-general+get-51002@lists.php.net to get a copy of this message
> -----Original Message----- > From: Joseph Bannon [mailto:JBannon@advparadigm.com] > Sent: Tuesday, May 01, 2001 2:33 PM > To: PHP (E-mail) > Subject: [PHP] opening files > > > How do you open a text file and put all the contents into a > variable like $filecontent? You use some combination of the commands presented at http://www.php.net/manual/en/ref.filesystem.php If you're just wanting something quick and simple, you might find the file() function particularly useful. --- Mark Roedel (roedelm@letu.edu) || "There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is already full." LeTourneau University || -- Henry Kissinger

« previous php.general (#51002) next »