![]() Mailinglisten-Archive |
Michael Baumann schrieb: > Hallo, > > filesize() liefert bei gro�en Dateien (mehr als 2 Gigabyte) als > R�ckgabewert 0. Klar, das d�fte daran liegen, dass ein Integer nicht > mehr als 2,1 Mrd. fasst. > > Aber: Gibts da einen Workarround (m�chte nur ungern �ber nen > kommandozeilenaufruf gehen)? bis 4GB sollte es wohl so funktionieren: "Note: Because PHP's integer type is signed and many platforms use 32bit integers, filesize() may return unexpected results for files which are larger than 2GB. For files between 2GB and 4GB in size this can usually be overcome by using sprintf("%u", filesize($file))." -- Sebastian Mendel www.sebastianmendel.de www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet
php::bar PHP Wiki - Listenarchive