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"
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
2 matches
Mail list logo