$w3c = new W3C; $result = $w3c->validate("http://devprotalk.com"); echo ($result == true) ? ':)' : ':(';