Re: Problems with filesize() and large files
| From: | timo stamm | Date: | Mon, 09 Sep 2002 23:49:18 +0000 |
| Subject: | Re: Problems with filesize() and large files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115795@lists.php.net to get a copy of this message | ||
Hi Kurt,
not pretty, but what about using the CLI tool ls with an exec() call?
Timo
Am Dienstag den, 10. September 2002, um 00:07, schrieb Kurt Glazemakers:
Hi, I need the filesize in PHP for very large files, over 2 Gigabyte. The problem is that the integer returns the size in byte as an integer. If the integer is too big, it returns an negative value. Is it possible to extend the integer to 64 bit ? Or any other solution, to solve this problem ? Example: C:\php423\php>php -q c:\devel\filesize.php int(-834864026) Which checks the size of a 3 Gigabyte file. Many thanks, Kurt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php