note 105902 deleted from function.filesize by danbrown

From: Date: Sat, 24 Sep 2011 16:28:35 +0000
Subject: note 105902 deleted from function.filesize by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183405@lists.php.net to get a copy of this message
Note Submitter: m3gadeth at gmail dot com ---- Regarding the perl_filesize function posted below, as a solution to files >2GB problem: The function won't work with %d, %u will work up to 4GB, but %s works. here's the rewritten function <?php function perl_filesize($filename) { return exec(" perl -e 'printf \"%s\n\",(stat(shift))[7];' ".$filename." "); } ?>

« previous php.notes (#183405) next »