Reply to Re: getting file size for really big (10GB) files?

Your name:

Reply:


Posted by Martin on 07/02/06 18:57

Thanks for both your replys.

I have noticed that PHP does not handle big files well in any
situation. The manual brushes by this and, for example, suggests I use
sprinf to make an unsigned number to get the correct size for files up
to 4GB. So very 90s. :)

I am surprised that PHP can't simply get the same result as 'ls'. I was
thinking of using it but the downside is that it imposes some
limitations on the server installation I can use. Ideally I would like
to avoid exec() and other commands that is often blocked on hosting
servers. (even though most won't like 10Gb files anyway)

The bigger problem is really that different installations return vastly
different results for filesize(). My local php4 (Mac OS X) at least
returns a number while the php5 (Fedora) server I use throws a warning
and returns false on the same file. Php5 on Fedora I really expected to
be up to it.

Sorry for the little rant. This is one area where I assumed PHP would
be OK. Developing an application for a few months and at the final
testing stage finding out these problems is no fun. You can imagine how
much headscratching I have done to get the uploading and downloading of
these huge files to work... and then I stumble on this "detail".

Thanks again guys.

[Back to original 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

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