Fwd: Re: [PHP] Read a file

From: Date: Tue, 08 Jul 2003 15:55:57 +0000
Subject: Fwd: Re: [PHP] Read a file
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-154391@lists.php.net to get a copy of this message
This is a forwarded message From: Burhan Khalid <phplist@meidomus.com> To: Carlos Castillo <ccastillo@imagine.com.co> Date: Tuesday, July 8, 2003, 6:14:45 PM Subject: [PHP] Read a file ===8<==============Original message text=============== On Tuesday, July 8, 2003, 6:08:20 PM, Carlos wrote: CC> I need to read a whole file and then look for an info on it, i want to know CC> with which function is better, fopen(), fpasstrhu().......fseek().... The function that will be best will depend on what kind of file you are wanting to read. For simple text files, this works well : $contents = file("somefile.txt"); Which puts all the information in the file in an array. http://www.php.net/file -- Regards, Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com ===8<===========End of original message text=========== -- Best regards, Burhan mailto:phplist@meidomus.com

« previous php.general (#154391) next »