Welcome to WebmasterWorld Guest from 22.214.171.124 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Subscribe and Support WebmasterWorld
W3C Validation mini msg:3807758 11:20 am on Dec 15, 2008 (gmt 0) Hi
Which is the best way to work php files through the W3c validator?
What I have done for a few files is that I have viewed the source and what I got was the resultant Html. Now I copied this and pasted in the validator's submit box.
The problem is I cannot open certain files from the browser, and so I cannot get the html code.
So how do you guys turn the mixture of php code and html code in the php file to pure html/xhtml?
phranque msg:3807785 12:16 pm on Dec 15, 2008 (gmt 0)
the best way to do this is to use your server to convert php to html.
the easiest way to validate your code is to install the html validator or web developer add-on to extend firefox.
mini msg:3812592 6:54 am on Dec 22, 2008 (gmt 0)
I have installed the firefox html validator add-on. Well, it has become quite easy as you can refesh the "view source" page itself after updating your code.
There is an option "clean up html" which is quite interesting. But how can one know what changes the firefox html validator has made?
Things become complicated because the html code from all the "include" files is also displayed there.
Is there any way to track the changes made?
coopster msg:3813328 1:09 pm on Dec 23, 2008 (gmt 0)
Concurrent Version software such as Subversion are great tools for tracking changes, rolling back to previous versions, etc. Subversion also comes with a diff utility for comparing one version of a document with another, highlighting the changes that were made. The Eclipse Integrated Development Environment (IDE) also has a diff utility and Local History tracking. g1smd msg:3814881 3:47 pm on Dec 27, 2008 (gmt 0)
Is anyone aware of a system that shows diffs like those seen in normal wikipedia text content pages?
I am almost at the point of using a wiki to track code changes on a small project.
tkien msg:3815582 3:01 pm on Dec 29, 2008 (gmt 0)
Run your script on firefox and use 'HTML Validation' plugin for FF to check W3C Validation. It will show you errors and give you details how to fix it.