friends any body knows how to get the size of an image from a remote file. For example if http://www.yahoo.com/login.gif is given to the script as input, the script should outpu the size of that image in bytes.Is it possible?.also can we get the size of the html code of the homepage (eg:http://www.yahoo.com/home.htm)
i could help you but i dont like attention seekers 🙂
you have mistaken me im not an attention seeker.Please help .I want to create a report on how fast a page loads.For that purpose i have to calculate the size of images in that html page and the size of plain html
Easy enough. fread() is involved, and filesize() or maybe just strlen().