note 79023 modified in function.filesize by danbrown

From: Date: Sun, 18 Jan 2009 18:04:01 +0000
Subject: note 79023 modified in function.filesize by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149400@lists.php.net to get a copy of this message
On 64-bit platforms, this seems quite reliable for getting the filesize of files > 4GB <?php $a = fopen($filename, 'r'); fseek($a, 0, SEEK_END); $filesize = ftell($a); fclose($a); ?> --was-- On 64-bit platforms, this seems quite reliable for getting the filesize of files > 4GB $a = fopen($filename, 'r'); fseek($a, 0, SEEK_END); $filesize = ftell($a); fclose($a); http://php.net/manual/en/function.filesize.php

« previous php.notes (#149400) next »