Reply to Re: Tool to validate HTML code with PHP tags?

Your name:

Reply:


Posted by Razzbar on 04/27/07 17:11

You want something to 'fix' the HTML code for you, like Tidy does. I'd
like to say
that it's impossible, but of course, it isn't impossible *in theory*.

It's easy enough to say, use the w3c validator and fix the HTML
yourself!

The tool you want would have to interpret PHP and then 'validate' the
*output*
of your PHP script, and then somehow figure out where in the script
the
error came from... There are so many ways PHP can generate HTML, this
would require a HUGE amount of intelligence. It would have to figure
out
how and where the HTML came from.

The number of ways PHP (or any program) can generate HTML (or anything
else) is infinite.

No tool can be that smart.

I suppose it could be done if combined with some template based
programming
discipline, but it'd be easier to use the w3c validator to find the
errors, and your
knowledge of your script to figure out where that error came from.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация