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

Your name:

Reply:


Posted by Geoff Berrow on 04/29/07 10:15

Message-ID: <1177835633.197048.31470@u30g2000hsc.googlegroups.com> from
webrod contained the following:

>The fact that PHP is repeating a line is not a problem with HTML
>validation, because, if you are validating the HTML line (only 1),
>then even if you duplicate this line ten times, the validation will
>remain OK (maybe with some exceptions??).

Lots of exceptions

<?php if($something_is_true){ ?>
<div style='border:1px solid
red;padding:20px;margin:20px;text-align:center'>
<?php } ?>

<?php if($something_else_is_true){ ?>
<div style='border:1px solid
blue;padding:20px;margin:20px;text-align:center'>
some content
</div>
<?php } ?>

<?php if($something_is_true){ ?>
some more content
</div>
<?php } ?>

OK, you may /never/ code like this. But that's not the point. ASs far
as an automated tool is concerned that is perfectly valid code.

I can't see how you could possibly check the validity of the code
without parsing the php

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

[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

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