Re: [PHP] Problems with filesize() and large files

2002-09-09 Thread timo stamm
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 by

RE: [PHP] Problems with filesize() and large files

2002-09-09 Thread Kurt Glazemakers
on [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 12:27 AM To: Kurt Glazemakers; [EMAIL PROTECTED] Subject: Re: [PHP] Problems with filesize() and large files Just figure out what the limits of 32-bit integers are. It might be enough to do something like $num = INT_MAX + abs( INT_MIN

Re: [PHP] Problems with filesize() and large files

2002-09-09 Thread Evan Nemerson
Just figure out what the limits of 32-bit integers are. It might be enough to do something like $num = INT_MAX + abs( INT_MIN - filesize(bigFile) ); I'm not sure if that's the right math, but I hope you get the idea. If memory serves, what's happening is that the 32nd bit (which represents the