自动W3C验证? [英] Automatic W3C validation?

查看:90
本文介绍了自动W3C验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的许多人之一,很多人开始热情,然后悄然放弃了

项目是为了编写一些PHP,可以包含在每个页面中

on my网站(包括博客),并在每次加载时验证页面(通过W3C

验证器),如果有任何

问题,请给我发电子邮件。


我悄然放弃了它当我意识到它是kewel to kode

但我不知道为什么我想要它,或者它是如何工作的。


从表面上看,我只需要在每次更改页面时进行验证。

因此,每次加载验证都是荒谬的;这导致我进入了一个

平面文件数据库,在那里我可以查看页面文件的最后更新日期

对其上一个验证日期,从而避免不必要的

验证。


然后我发现有这么多包括(标准页眉&

页脚等菜单,点击数,等),网页的主文件可以保持不变,但是 - 如果一个包含的文件被更改 - 那么它可能

不再正确验证。 />

看到我的困境?所以我把它放在一边(因为有很多

更多的小项目代码),直到我能正确指定它。


任何评论/建议?有人知道类似的东西

已经存在吗?


提前感谢任何反馈。

解决方案

Baron Samedi写道:

我的很多人中的一个人开始热情,然后悄然放弃了
项目是为了编写一些PHP代码可以包含在我的网站上的每个页面(包括博客)中,并且每次加载时都会验证页面(通过W3C
验证器),如果有任何
问题。
< snip>有什么意见/建议吗?有人知道类似的东西
已经存在吗?



http://in.php.net/tidy

-

<?php echo''只是另一个PHP圣''; ?>

电子邮件:rrjanbiah-at-Y!com博客: http ://rajeshanbiah.blogspot.com/




R. Rajesh Jeba Anbiah写道:

Baron Samedi写道:

我的很多人中的一个人开始热情,然后悄然放弃了
项目是为了编写一些可以包含在每个页面中的PHP
在我的网站上(包括博客),每次加载时都会验证页面(通过W3C
验证器),如果有任何问题,请给我发电子邮件。

< snip>

任何意见/建议?有人知道类似的东西
已经存在吗?



http://in.php.net/tidy




hi,Raj,

而不是一个神秘的评论,你不觉得吗?那应该怎么回事?


Faust写道:

R. Rajesh Jeba Anbiah写道:

Baron Samedi写道:

我的很多人中的一个人开始热情,然后悄然放弃了
项目是为了编写一些可能的PHP被包含在我的网站上的每个页面(包括博客)中,每次加载时都会验证页面(通过W3C
验证器),如果有任何内容,请发送电子邮件给我/
问题。


< snip>

任何意见/建议?有人知道类似的东西
已经存在吗?



http://in.php.net/tidy



Raj,

而不是一个神秘的评论,不要''你觉得呢?这应该如何帮助?




如果你更喜欢这个链接并阅读内容,那么你可能已经意识到它有多大帮助是。我个人不是为了在c.l.php中镜像

php文件。我也不愿意使用袜子木偶

< http://www.answers.com/sock%20puppet>技巧。


-

<?php echo''只是另一个PHP圣徒''; ?>

电子邮件:rrjanbiah-at-Y!com博客: http ://rajeshanbiah.blogspot.com/


One of my many, many "started with enthusiasm, then quietly abandoned"
projects was to code some PHP which could be included into every page
on my site (blog included) and would verify the page (via the W3C
validator) each time that it was loaded and e-mail me if there were any
problems.

I "quietly abandoned" it when I realized that it was "kewel to kode"
but I don''t really know why I wanted it, or how it would work.

On the face of it, I only need to validate each time I change a page.
So, validating with every load seemed ridiculous; which lead me to a
flat file database where I could check the page file''s last update date
against its last verification date, thus avoiding unnecessary
validation.

Then it occurred to me that with so many includes (standard header &
footer, etc for menu, hit count, etc), the web page''s main file could
be unchanged, but - if an included file were altered - then it might
no longer validate properly.

See my dilemma? So I have put this to one side (since there are plenty
more little projects to code) until I can specify it correctly.

Any comments/suggestions? Anyone know of something similar which
already exists?

Thanks in advance for any fedback.

解决方案

Baron Samedi wrote:

One of my many, many "started with enthusiasm, then quietly abandoned"
projects was to code some PHP which could be included into every page
on my site (blog included) and would verify the page (via the W3C
validator) each time that it was loaded and e-mail me if there were any
problems. <snip> Any comments/suggestions? Anyone know of something similar which
already exists?



http://in.php.net/tidy

--
<?php echo ''Just another PHP saint''; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/



R. Rajesh Jeba Anbiah wrote:

Baron Samedi wrote:

One of my many, many "started with enthusiasm, then quietly abandoned"
projects was to code some PHP which could be included into every page
on my site (blog included) and would verify the page (via the W3C
validator) each time that it was loaded and e-mail me if there were any
problems.


<snip>

Any comments/suggestions? Anyone know of something similar which
already exists?



http://in.php.net/tidy



hi, Raj,

rather a cryptic comment, don''t you think? How is that supposed to
help?


Faust wrote:

R. Rajesh Jeba Anbiah wrote:

Baron Samedi wrote:

One of my many, many "started with enthusiasm, then quietly abandoned"
projects was to code some PHP which could be included into every page
on my site (blog included) and would verify the page (via the W3C
validator) each time that it was loaded and e-mail me if there were any
problems.


<snip>

Any comments/suggestions? Anyone know of something similar which
already exists?



http://in.php.net/tidy



hi, Raj,

rather a cryptic comment, don''t you think? How is that supposed to help?



If you have rather followed the link and read the contents, you
might have realized how helpful it is. I''m personally not for mirroring
php document in c.l.php. I also prefer not to use sock puppet
<http://www.answers.com/sock%20puppet> tricks.

--
<?php echo ''Just another PHP saint''; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/


这篇关于自动W3C验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆