Answer the question
In order to leave comments, you need to log in
How to find out the size of an image using PHP without loading it?
Hello. I need to calculate the number of images and their total size for each page. Everything is clear with the quantity, but I consider the size in the cycle as follows:
$img= file_get_contents($url);
echo strlen($img) / 1024 . ' КБ';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question