Well, it's always easy to write a function that does the job. I haven't tested this, but it should work (have done it at least a thousand times before 🙂)
// This function gets the file size of any
// file
function fileSize($filename) {
$size=0;
if(!($f=fopen($filename, "r")))
return 0;
while(!feof($f)) {
if(fgetc($f)) $size++;
}
fclose($f);
return $size;
}
usage:
$filesize=fileSize("test.swf");
print "The file was $filesize byte(s)\n";
Hope this helps.
🙂Mikko