|
Posted by Baron Samedi on 01/03/06 03:56
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.
[Back to original message]
|