You are here: Re: getting file size for really big (10GB) files? « PHP Programming Language « IT news, forums, messages
Re: getting file size for really big (10GB) files?

Posted by tony on 07/01/06 19:55

In article <1151763544.147885.137130@m79g2000cwm.googlegroups.com>,
martin@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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация