ID:               24411
 Comment by:       brian dot foddy at nwa dot com
 Reported By:      domisse at iap dot fr
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Linux
 PHP Version:      4.3.2
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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?

------------------------------------------------------------------------

[2003-06-30 11:12:52] domisse at iap dot fr

Description:
------------
Is there any hope to see a large file support in php ?




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24411&edit=1

Reply via email to