Anya: We should drop a piano on her. It always works for that creepy cartoon rabbit when he's running from that nice man with the speech impediment. Giles: Yes, or perhaps we could paint a convincing fake tunnel on the side of a mountain.

'Touched'


Buffistas Building a Better Board  

Do you have problems, concerns or recommendations about the technical side of the Phoenix? Air them here. Compliments also welcome.

To-do list


John H - Nov 19, 2002 5:02:32 pm PST #1647 of 10000

Back to:

A B Diagnosis 0 0 Everything is fine. 0 >0 Broken 0 <0   >0 0   >0 >0 Broken >0 <0  


John H - Nov 19, 2002 5:08:21 pm PST #1648 of 10000

you should drop the associative array. You don't need it.

Why did I think I needed it? Oh yeah, because the array might not work if the closing tags were present, just not in the right order. And your recipe fixes that.

What do people think? It's certainly a flawed implementation the way it is now, just giving an overall total, because like I said, 1000 missing open-bold tags and 1000 extra close-font tags comes out to zero, giving a false negative.


Hil R. - Nov 19, 2002 5:09:29 pm PST #1649 of 10000
Sometimes I think I might just move up to Vermont, open a bookstore or a vegan restaurant. Adam Schlesinger, z''l

First blank: extra closing tags. Probably OK.
Second blank: tags out of order, but all close. Probably OK.
Third blank: tags closed out of order, plus extra closing tags.


Jessica - Nov 19, 2002 5:12:13 pm PST #1650 of 10000
And then Ortus came and said "It's Ortin' time" and they all Orted off into the sunset

extra closing tags. Probably OK.

...unless one of them is t /table


John H - Nov 19, 2002 5:21:22 pm PST #1651 of 10000

Yeah this is just a check of formatting tags at the moment. The problem with table tags is you can't just count them, you have to validate a structure: TABLEs containing x number of TRs containing x number of TDs...

I think I might have to go back to that link with the full PHP parser...


Rob - Nov 19, 2002 5:25:43 pm PST #1652 of 10000

I bet that if you put in a close table tag for each open table tag, the board wouldn't be broken and all would be good. The message itself might look like crap, but we're not trying to solve that problem.

John, if you'll send me a copy of the test setup from your server, I'll take a whack at coding it up tonight.


John H - Nov 19, 2002 5:33:30 pm PST #1653 of 10000

I'm happy to try your solution on my site right now Rob, I'll play with it for a while and see what I come up with.

But now I'm looking for that post which mentioned some full HTML parsing module in PHP and I can't find it.


Rob - Nov 19, 2002 5:50:43 pm PST #1654 of 10000

It's Karl Thiessen "Buffistas Building a Better Board" Nov 18, 2002 3:07:13 am EST


Jesse - Nov 19, 2002 5:54:45 pm PST #1655 of 10000
Sometimes I trip on how happy we could be.

gaping openmouthed at Things I Don't Understand

cheering


John H - Nov 19, 2002 6:29:46 pm PST #1656 of 10000

OK, using Rob's model of reversing through the array of open ones and removing all which match a closing one, check out [link] -- and I'm going to lunch! Back in a while...