5.3 C
New York
Tuesday, December 6, 2022

How to get file size in php ?





If you require to get file size in php then you can do it easily using filesize() of PHP. Normally we require to get and check on before image uploading. So if you want to get image size then bellow example can help you. It will return size on byte.

Example:

echo filesize('flower10.jpg') . ' bytes';

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles