On Friday 19 July 2002 15:43, Peter wrote:
> You can try this.
>
>
> $datafile = file("..."); // Here comes your filename
>
> for ($k=0; $k<=count($datafile)-1; $k++) {
>
> echo "$datafile[$k]"; // Display each line read from datafile
>
> }
>
> ?>
foreach ($datafile as $line) {
echo "$li
I think more info is probably needed here. Is it always the literal string
"line3" that you want to catch, or always the second last line?
Some kind of regular expression solution is probably what you need.
Michael
On Fri, 19 Jul 2002, Peter wrote:
> You can try this.
>
>
> $datafile = fi
2 matches
Mail list logo