In article <11**********************@m79g2000cwm.googlegroups .com>,
ma****@eimermusic.com says...
Hi all.
I am developing a filemanager that needs to handle big files. While
testing on some zipped files of 6-7GB each I noticed that filesize(),
filemtime() and similar php-functions can't handle fikles larger than
2GB. This is true on the two servers I have regular access to (one
php4-RedHat, the other php5-Fedora).
If there a way to ger around these functions somehow? My fallback plan
is to use the systems functions and then parse the output-text to get
at the needed data. Naturally I was looking for a prettier way to do
it.
I'd appreciate any tips on the subject. thanks.
I must be honest - I would choose another language if I wanted to do that
(10 Gb is quite a small file in my world)
PHP takes the absurd step of converting any integer it doesnt like into
a float on the fly at runtime - a more dangerous practice I can't
imagine. The upshot is maybe you'll come unstuck trying to manipulate
large integers.
Obviously you can work around preventing that from being a problem but
you shouldn't have to.
I dont know if its relevant to your situation but I thought I'd just
highlight it because it caused me big problems.
tony