RE: [PHP] .DAT file with PHP

2006-03-08 Thread Jabez Gan
I use: $frob = fopen('data/rob.dat','r'); if ($frob) { while (!feof($frob)) { $buffer = fgets($frob, 4096); echo $buffer; $glorp[] = $buffer; // places line in array } } $read = array_reverse($glorp); However, only "Array"

RE: [PHP] .DAT file with PHP

2006-03-08 Thread Jabez Gan
Sorry im new but, how do we read from a file to an array? I've studied C but not with PHP and it's not working for me... Suggestions? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 9:58 PM To: [EMAIL PROTECTED]; php-general@lists.php