Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Kevin Stone
- 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

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread 1LT John W. Holmes
> 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

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
- 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

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Kevin Stone
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 > > -

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Kevin Stone
nt: Thursday, March 06, 2003 4:44 PM Subject: Re: [PHP] reading last -n lines array is emty > If I remove the "/" then I get this error > > Warning: bad regular expression for split() in > /home/virtual/browse/home/httpd/html/Classifieds/infobox2.php on line 14 > >

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
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[

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Kevin Stone
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 > >

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
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

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Jason Wong
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

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
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

Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread Kevin Stone
riginal Message - From: "WebDev" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 06, 2003 3:24 PM Subject: [PHP] reading last -n lines array is emty How to grab the last -n lines from a data file and display the stored data Only the the last 10 line numb

[PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
How to grab the last -n lines from a data file and display the stored data Only the the last 10 line numbers coming back when I echo $i How do I get the list($adnr, $user, $date, $listed to catch the datafields datafile looks like 23|Werner|LastN|Street|etc|etc.|etc|| 24|Veronika /

[PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
How to grab the last -n lines from a data file and display the stored data Only the the last 10 line numbers coming back when I echo $i How do I get the list($adnr, $user, $date, $listed to catch the datafields datafile looks like 23|Werner|LastN|Street|etc|etc.|etc|| 24|Veronika /

[PHP] reading last -n lines array is emty

2003-03-06 Thread WebDev
How to grab the last -n lines from a data file and display the stored data Only the the last 10 line numbers coming back when I echo $i How do I get the list($adnr, $user, $date, $listed to catch the datafields datafile looks like 23|Werner|LastN|Street|etc|etc.|etc|| 24|Veronika /