note 61233 deleted from function.filesize by aidan

From: Date: Sat, 02 May 2009 11:19:17 +0000
Subject: note 61233 deleted from function.filesize by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154126@lists.php.net to get a copy of this message
Note Submitter: will at imarc dot net ---- If you are trying to find a way to get the filesize for files over 2GB, you can always use exec() and run a system command to return the value. The following works on my linux box: <?php $sizeInBytes = filesize($path); if (!$sizeInBytes) { $command = "ls -l \"$path\" | cut -d \" \" -f 6"; $sizeInBytes = exec($command); } ?>

« previous php.notes (#154126) next »