<?$file="www.mysite.com";
$fh=fopen($file, "r");
$fileinfo=fstat($fh);
$b=filesize("$file");
print $b;
echo "Filename:" .basename($file)."<br/>";
echo "Filesize: ".round(($fileinfo["size"]/1024),2)."kb <br/>";?>
this is the code to determine the size of the page. but i m getting the error as filesize() [function.filesize]: stat failed for www.mysite.com
any body help in finding the page size of teh given url