> -----Original Message-----
> From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
> 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 ([EMAIL PROTECTED])  ||  "There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full."
     LeTourneau University      ||                    -- Henry Kissinger


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to