<?$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

thanks u so much

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.