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

Your name:

Reply:


Posted by Jerry Stuckle on 04/28/07 01:13

webrod wrote:
>> No, there is no difference. In either case you are using PHP to output
>> information to the page. Nothing more, nothing less. Zip. Nada.
>
> This is because you are focusing on the outpout. As I said, YES the
> output is EXACTLY the same, if you compare the generated HTML, I agree
> this is the same.
>

Then who cares about how it's generated? I sure don't. You're fixating
on the details instead of the overall picture.

>> 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),
>
> I don't care about the PHP code
>

Then don't worry about validating the source. Just use the HTML
validator to check the output.

>> and the HTML output is valid (which the validator will tell you).
>
> Yes. This is what I want.
> BUT:
> I don't want to validate the output because I am NOT looking for a
> tool which only validate the HTML (like "you should replace <br> by
> <br/> to be conformed with XHTML rule bla bla bla").
> I am looking for a tool which will do the job for me ;-)
> I want it to replace automatically <br> by <br/> in my php page.
> I want it to udpate the code. (actually TIDY do it It works even with
> PHP page but with bugs!!)
>
> I'm sure you understand that I need to do this step on the input (the
> php page) instead of the output (or its work will be lost!!!!!).
>
> And then you get a better understanding of the difference between
> familly 1 and familly 2.
>
> Obviously, if you want to validate the output, there is no difference
> (who said it is what I want?). But if you need to validate the HTML
> code from a php page, you will understand it will be easier to
> validate HTML code if the php code is in the HTML (and not the
> opposite, when HTML is in the php code).
> And that's why it is always recommended to belong to the second
> family ;-)
>
> Rod
>

You've got it. It's called "Brain 1.0". And no program has replaced it
yet. That's what you get paid for.

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

[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

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