This should do what you need:
$bytes = (stat('test.jpg'))[7]; $kbytes = int($bytes/1024);
As an alternative, you can use -s insstead of stat():
$bytes = -s 'test.jpg';
Michele.
In reply to Re: file size help
by arthas
in thread file size help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |