- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Kevin Stone" <[EMAIL PROTECTED]>; "WebDev" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 2:06 PM
Subject: Re: [PHP] reading last -n line
> Holy crap looks like I was wrong! I just tested it and sure enough '|'
does
> return an error.. how do you like that. So use split("\|", $file[$i]).
For a regular expression "|" means OR. You could use explode("|",$file[$i])
for the sam effect. Benchmark split() vs. explode() and see which is
-
From: Kevin Stone <[EMAIL PROTECTED]>
To: Kevin Stone <[EMAIL PROTECTED]>; WebDev <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 12:55 PM
Subject: Re: [PHP] reading last -n lines array is emty
> Holy crap looks like I was wrong! I jus
L PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 1:50 PM
Subject: Re: [PHP] reading last -n lines array is emty
> Sorry that should be $file[$i] not $line[$i]. I failed to see your other
> mistake. Just trust me on the '|' thing.
> - Kevin
>
> -
> - Original Message -
> From: Kevin Stone <[EMAIL PROTECTED]>
> To: WebDev <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, March 06, 2003 12:40 PM
> Subject: Re: [PHP] reading last -n lines array is emty
>
>
> > No you did not do it as I d
ROTECTED]>
Sent: Thursday, March 06, 2003 12:40 PM
Subject: Re: [PHP] reading last -n lines array is emty
> No you did not do it as I described.
>
> Here's what I wrote:
> split('|', $line[$i]);
>
> Here's what you wrote:
> split('\|', $line[
Kevin
- Original Message -
From: "WebDev" <[EMAIL PROTECTED]>
To: "Kevin Stone" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 4:33 PM
Subject: Re: [PHP] reading last -n lines array is emty
> still empty
>
>
Original Message -
From: Kevin Stone <[EMAIL PROTECTED]>
To: browseabit <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 12:15 PM
Subject: Re: [PHP] reading last -n lines array is emty
> $buffer is undefined in your code. Do split('|', $line[$i]);
> - Kev
On Friday 07 March 2003 07:09, WebDev wrote:
> I again have no values in my list names $adnr, $user, $date, $listed,
> $hlong, $eins, $zwei, . themn are always emty no matter what I do with
> your code my code
> $dreidrei, $dreivier, $dreifunf, $dreisechs ) = split ("\|", $buffer);
That's bec
utton=on&db_id=$adnr&query=retrieval\"
target=\"_blanko\">$Endzwei $End3";
}
// Code end
- Original Message -
From: Kevin Stone <[EMAIL PROTECTED]>
To: WebDev <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 11:42 AM
Su
You could do it reading back to front the way you propose but I think it
will work much better in a proper for loop.
// the number of elements in the array.
$num_lines = count($file);
// the line we want to start the loop at.
if ($num_lines > 10)
$start_line = $num_lines - 10;
else
$start
11 matches
Mail list logo