filesize() works only with your local files. You have two choices:
- Download the file and find the filesize
- Use the following get_header method:
function:
$file = get_headers("http://grdagrd.com/uploads/3ac9ac4d9d69ef18785876438bb0a69a.jpg", TRUE);
echo $file['Content-Length'];
Gives: 69322
as of yours
Moreover, you can also retrieve following details from get_headers:
Array
(
[0] => HTTP/1.1 200 OK
[Date] => Wed, 18 May 2016 09:55:10 GMT
[Server] => Apache
[Last-Modified] => Fri, 29 Apr 2016 16:00:34 GMT
[Accept-Ranges] => bytes
[Content-Length] => 69322
[Connection] => close
[Content-Type] => image/jpeg
)
There is also a Github gist