#24411 [Opn]: 2 Gb filesize limit

From: Date: Wed, 02 Jul 2003 13:22:07 +0000
Subject: #24411 [Opn]: 2 Gb filesize limit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43081@lists.php.net to get a copy of this message
ID: 24411 Updated by: derick@php.net Reported By: domisse at iap dot fr Status: Open Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.3.2 New Comment: Don't expect this to be added in the near future... it will probably wait until we all use 64bit CPUs ;) Previous Comments: ------------------------------------------------------------------------ [2003-07-02 08:04:09] domisse at iap dot fr Thanks your help :) Will check the Changelog file in the next release. ------------------------------------------------------------------------ [2003-07-01 11:55:25] brian dot foddy at nwa dot com You might try using standard shell commands (ls -la) and capturing the values into either strings or double floats. You could probably work something out that would give you most of what you need. A hack... most definately, but I've had good luck dealing with 64bit ints as doubles without loosing too much precision. ------------------------------------------------------------------------ [2003-06-30 14:14:31] domisse at iap dot fr thanks :) But most of my files are bigger....will wait for the next release ;) Thanks ------------------------------------------------------------------------ [2003-06-30 12:06:15] derick@php.net If they are smaller than 4GB you can do this: printf("%u", filesize("filename")); Everything larger would be a problem, as the return value from filesize is an integer. ------------------------------------------------------------------------ [2003-06-30 12:04:55] domisse at iap dot fr I have to manage astronomical images which are rather big ! I would like to get filesize to display basic data on them via a browser. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/24411 -- Edit this bug report at http://bugs.php.net/?id=24411&edit=1

« previous php.bugs (#43081) next »