note 37277 deleted from function.filesize by aidan
| From: | aidan@php.net | Date: | Sun, 26 Sep 2004 00:20:23 +0000 |
| Subject: | note 37277 deleted from function.filesize by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77341@lists.php.net to get a copy of this message | ||
Note Submitter: brion at pobox dot com
----
The suggested >2GB workaround to use sprintf("%u", filesize($file)) may fail on some
systems, where the filesize() or stat() call itself fails with "(errno=75 - Value too large for
defined data type)" and returns false.
An ugly workaround is to shell out to a command that does understand large files and will print a
string for you.