note 51904 added to function.filesize

From: Date: Thu, 14 Apr 2005 15:14:57 +0000
Subject: note 51904 added to function.filesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-88007@lists.php.net to get a copy of this message
The function that huda posted below works well enough for small files but if you are trying to find the size of, say, a 60 meg file .. you do not want to download the entire thing every time you are checking the size. Keep this in mind if you want to use it. The best way to do it is to read the content length returned by an HTTP request, hands down. ---- Manual Page -- http://www.php.net/manual/en/function.filesize.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51904 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51904&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51904&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51904&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51904&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51904&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51904&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88007) next »