[PHP] .DAT file with PHP

2006-03-08 Thread Jabez
I want to use PHP to show the contents of the DAT from back to front. HOw do I do that? Thanks!

RE: [PHP] .DAT file with PHP

2006-03-08 Thread Jabez
I used the following code that Paul suggested, but it didn't reverse my content. The file I would want to have the content reversed is as attached. Chinese characters is in the file so... Suggestions? -Original Message- From: Paul Novitski [mailto:[EMAIL PROTECTED] Sent: Thursday, March

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

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"