RE: [PHP] Text File open and display

2003-03-03 Thread Niklas Lampén
You get a file to an array of lines with file(). Example: ? $myFile = file(text_file.txt); // Now $myFile is an array looking like // [0] = row 1; // [1] = row 2; // [2] = row 3; // . for ($i = 0; $i count($myFile); $i++) { print Row .($i+1).: .$myFile[$i]; }; ? Niklas

RE: [PHP] Text File open and display

2003-03-03 Thread Chris Blake
Muchos grassy arse...works perfectly On Mon, 2003-03-03 at 11:06, Niklas Lampén wrote: You get a file to an array of lines with file(). Example: ? $myFile = file(text_file.txt); // Now $myFile is an array looking like // [0] = row 1; // [1] = row 2; // [2] = row 3; // .