You are here: Re: Tool to validate HTML code with PHP tags? « PHP Programming Language « IT news, forums, messages
Re: Tool to validate HTML code with PHP tags?

Posted by Jerry Stuckle on 04/27/07 13:09

webrod wrote:
>> As Alvaro said -http://validator.w3.org.
>
> No, this validates the output (ok you could provide the php file as an
> input).
> And as I said I would like the tool to do the modification itself.
> Like the great TIDY tool (but it removes php code!!).
>
>> How you generate the html (and yes, you are using PHP to generate HTML -
>> the link destination in the href is part of html) is unimportant. The
>> result is html.
>
> Of course the final result is HTML ;-)
> If you consider the output, obviously this is HTML+CSS+Javascript
> But if you consider the INPUT, there is 2 ways to build a php page.
> How to say.... They are 2 families of developpers ;-)
> The first family will ask PHP to generate the HTML code (HTML within
> php tag)
> The second family will insert PHP tag within HTML tag.
> And believe me, this is not the same thing, even if, obviously, the
> output is exactly the same HTML.
> (I belong to the second family)
>

No, there is no difference. In either case you are using PHP to output
information to the page. Nothing more, nothing less. Zip. Nada.

You are getting lost in the details. Look at the higher level.

> Any other idea to validate my templates files which contains PHP code
> within HTML tags?
>
> Rod
>

So what exactly do you want to validate? The only important things are
- the PHP code itself is valid (the interpreter will tell you if it's
not), and the HTML output is valid (which the validator will tell you).

What exactly do you expect?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this 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

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