Forum Moderators: coopster
I tried filesize(), but it only calculates the size of a file placed within the folder (I want to calculate the size of a page/site which is of course not in the root, and is somewhere else).
In other words, it gave me the following error:
Warning: filesize(): Stat failed for ht*p://www.foo-site.com/foo.html (errno=2 - No such file or directory) in /home/www/size.php on line 136
Next, I tried the readfile() function, which worked, and stored the size of the document into the MySQL db - but it showed a preview of the whole webpage I applied (as you see when using the include() function) instead of showing it's size.
What I really want to do, is show the size of the URL applied and also store it into a MySQL database.
Is there any way of doing this?
Any help would be most appreciated,
Sid