#24411 [Opn]: 2 Gb filesize limit

From: Date: Wed, 02 Jul 2003 13:04:09 +0000
Subject: #24411 [Opn]: 2 Gb filesize limit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43075@lists.php.net to get a copy of this message
ID: 24411 User updated by: domisse at iap dot fr Reported By: domisse at iap dot fr Status: Open Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.3.2 New Comment: Thanks your help :) Will check the Changelog file in the next release. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2003-06-30 11:59:40] derick@php.net Most likely not soon... internally PHP uses a signed integer for string lengths and other things. What exactly do you want to do with this? ------------------------------------------------------------------------ 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 (#43075) next »