Welcome to WebmasterWorld Guest from 54.196.244.45

Forum Moderators: phranque

Message Too Old, No Replies

W3C Validation

     
11:20 am on Dec 15, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 17, 2007
posts:91
votes: 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?

12:16 pm on Dec 15, 2008 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


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.

6:54 am on Dec 22, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 17, 2007
posts:91
votes: 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?

1:09 pm on Dec 23, 2008 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12533
votes: 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.
3:47 pm on Dec 27, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 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.

3:01 pm on Dec 29, 2008 (gmt 0)

New User

5+ Year Member

joined:Dec 28, 2008
posts:2
votes: 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.