Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of massimiliano rossetti  >  my_validator  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: sample
Class: my_validator
Validate HTML pages with the W3C service
Author: By
Last change:
Date: 2 years ago
Size: 369 bytes
 

Contents

Class file image Download
<?php
set_time_limit
(3600);
include(
"CurlObj.class.php");
include(
"W3cValidator.class.php");
$check = new W3cValidator();
$url 'http://www.nasa.gov/';
$result $check->validate($url);
echo 
'<pre><xmp>';
var_dump($result);
echo 
'</xmp></pre>';
?>
<?php
$output 
$check->get_curl_output();
echo 
'<pre><xmp>';
var_dump($output);
echo 
'</xmp></pre>';
?>