can i validate xhtml programmtically from a php script?

bYzlnu

New Member
I would like to have a PHP function to check if a URL returns valid HTML or NOT, and returns true or false.Something like:if (validate_page("/somefile.html")) { echo "This page validated!!"; }I found TWINE but it doesn't just give me true or false. Also I got an error running it on my system. http://twineproject.sourceforge.net/I found this offline tool that looked promising. http://htmlhelp.com/tools/validator/offline/Also I found this thread that talks about a gem, but it sounds problematic. http://stackoverflow.com/questions/1287952/how-do-i-validate-xhtml-with-nokogiriAny thoughts or suggestions? Thanks!
 
Back
Top