in reply to file size help
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: file size help
by rob_au (Abbot) on Jun 17, 2003 at 23:27 UTC |
In Section
Seekers of Perl Wisdom