Login   Register  
PHP Classes
elePHPant
Icontem

Private Validator: Validate the HTML output of a private web server

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2004-05-14 (10 years ago) RSS 2.0 feedStarStarStarStar 65%Total: 1,268 This week: 1All time: 2,778 This week: 1,491Up
Version License Categories  
private_validator 1.0GNU General Public Lice...HTML, Web services, Validation
Description Author  

Private Validator is a class that can be used to validate the HTML output of a private Web server via the public W3C's Validation Service.

This class is useful to validate pages served by a private Web server that cannot be reached by W3C's server. The class fetches a private page to be validated and submits it to the validator service pages and collect the validation results.

Innovation Award  
PHP Programming Innovation award nominee
May 2004
Number 7
Sometimes Web developers make mistakes that result in bugs in their applications making them generate bogus HTML. Often these bugs are so subtle that is impossible to notice them just by displaying the pages in one browser.

Most browsers tolerate erroneous HTML but what may seem to render well in one browser, may not look very well in other browsers, preventing the users to see the information on the pages properly.

One solution for this problem is to use HTML validation tools to systematically detect bugs as early as possible during the development of the Web applications. The W3 Consortium site provides an useful HTML validation tool that may assist in the validation of the pages of Web applications.

However, many developers work on applications that are not meant to be made available to the public, at least during the development phase, thus preventing the use of tools need to have public access to the pages, like it is the case of W3C validation tools.

This class provide a solution that works around the problem by providing a means to submit the HTML code of the private pages to the W3C tools via a Web server that has full access to the world wide web, acting like a proxy.

The class collects the results of the W3C tools and display them in a page accessible to the Web developers so they can take the necessary fixing action if it is the case.

Manuel Lemos
Picture of Steve Clay
Name: Steve Clay <contact>
Classes: 1 package by
Country: United States United States
Age: 39
All time rank: 1837241 in United States United States
Week rank: 1086 Up124 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file http.inc.php Class HTTP client class
Accessible without login Plain text file privateValidate.php Example PV application
Plain text file PrivateValidator.class.php Class PV class file
Accessible without login HTML file readme.html Doc. Information

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,268All time:2,778
 This week:1This week:1,491Up
 User Ratings  
 
 All time
Utility:90%StarStarStarStarStar
Consistency:60%StarStarStarStar
Documentation:70%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:65%StarStarStarStar
Rank:460