This is a forwarded message From: Burhan Khalid <[EMAIL PROTECTED]> To: Carlos Castillo <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php