W3C-PHP

W3C-PHP is a little php-cli script that can validate a list of URLs trough the W3C validator Web site (http://validator.w3.org/) with PHP-DOM functions.


Version 1.1 is out!
This release adds the option #FOLLOW# for following the internal link of a site (tag A) and validating it.
http://sourceforge.net/project/showfiles.php?group_id=172411




REQUIREMENTS
-> PHP ver >= 5.0.0
-> The script use the PHP-DOM functions

CONFIGURATION
list.txt -> contain the list of url that you need to validate, the URLs must start with ":" without the "http://" prefix for exaple...
:www.nasa.gov
:www.google.com

With the #FOLLOW# option you can validate the internal link of a site you can active that option with:
:www.pippo.com#FOLLOW#

check.php -> php script that contain the source code PLEASE CHECK IF YOUR PHP BIN ARE IN /usr/bin/php IF NOT, EDIT THE FIRST LINE OF check.php
For exaple if you have installed php from Yast on Suse probably you have the php bin in /usr/bin/php5 for execute the script you need to edit the first line of check.php or make a link with "ln -s /usr/bin/php5 /usr/bin/php"