note 37277 added to function.filesize

From: Date: Sat, 08 Nov 2003 13:41:58 +0000
Subject: note 37277 added to function.filesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-60139@lists.php.net to get a copy of this message
The suggested >2GB workaround to use sprintf("%u", filesize($file)) may fail on some systems, where the filesize() or stat() call itself fails with "(errno=75 - Value too large for defined data type)" and returns false. An ugly workaround is to shell out to a command that does understand large files and will print a string for you. ---- Manual Page -- http://www.php.net/manual/en/function.filesize.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37277 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37277&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37277&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60139) next »