----- Original Message -----
From: "-{ Rene Brehmer }-" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 12:54 PM
Subject: [PHP] Getting false positive on strpos ... despite doublecheck...
HELP!


> Hi y'all
>
> I'm working on the read function for my guestbook, but I'm getting a false
> positive on the check for the date string. It reads a text file, checks
> for line headers, and then writes the HTML according to what it finds ...
> really simple, and works beautifully, except that I get an extra date at
> the end, which I can't figure out where comes from.
>
---snip---
>
> It interprets the text correctly 100%, BUT I get a false positive date
> check at the end of the file, which results in an extra (today's) date.
> Extract of resulting HTML (last part):
>
> <span class="ylwbld">On 5 January 2003 21.17.18 +0100, Knap Knapstrup</a>
> of city, country wrote:</span><br>
> <span class="whttxt">Adder badder, pladder madder. Adder badder, pladder
> madder. Adder badder, pladder madder. Adder badder, pladder madder. Adder
> badder, pladder madder. Adder badder, pladder madder. Adder badder,
> pladder madder. Adder badder, pladder madder. Adder badder, pladder
> madder. Adder badder, pladder madder.</span><br>
> <span class="ylwbld">Link:</span> <a href="http://www.anotherlink.ext";
> target="_new" class="ylwlink">www.anotherlink.ext</a><br>
> <hr width="85%" color="#ffffff" noshade align="center">
> <span class="ylwbld">On 17 March 2003 00.00.00 +0100,
>
> ^^^NOTE THE LAST LINE!!!
> It's not supposed to be there ... Can anyone tell me how to avoid it, and
> possibly what causes it???
>
> Side-remark: The text-file is to be written from entries in a form I
> haven't coded yet. Like I said in the top, some of the fields are
> optional, and the read script is made to compensate for this.
>
> TIA
>
> Rene
> --
> Rene Brehmer
>
> This message was written on 100% recycled spam.
>
> Come see! My brand new site is now online!
> http://www.metalbunny.net


Rene, I copied and pasted your code into a test file and ran it on my
server.  It worked just fine for me.. no extra date line at the bottom.
Don't know what to say.

- Kevin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to