Bir görüntü dosyasının boyutunu al

0 Cevap php

Aynı hesaba (bir site) üzerinde barındırılan görüntü ve komut.

Biz her görüntünün doğrudan bağlantı biliyor:

$image = "http://site.com/images/full-1091.jpg"

Nasıl olabilir biz get the size of this file?

Gibi:

{ do something with $image and get $image_size }
echo $image_size;

Onun $image_size "156,8 kilobaytlar" ya da "20,1 Mbyte" gibi formatına daha iyi.

Teşekkürler.

0 Cevap