[Edit] I think that explanation sucked. I want to somehow include in a script the page that the user wants to get validated. [the url has been base64 encode] So basically, when they do so, it uses the regular validation headers to be sent to my pages, saves that output as a file, then redirects to the validator:
Code: Select all
<?
$url = base64_decode( $_GET['q'] );
ob_start( );
////////////////////////
include "http://www.chatlance.com$url";
///////////////////////
$contents = ob_get_contents();
ob_end_clean();
$file = "/***************/Validation/".md5(time()).".htm";
$hnd = fopen( $file, "w" );
fwrite( $hnd, $contents );
fclose( $hnd );
header( "Location: http://validator.w3.org/check?uri=".urlencode("http://www.chatlance.com/".substr($file,27)).";ss=1" );
?>