note 56142 deleted from function.filesize by aidan
| From: | aidan@php.net | Date: | Wed, 09 Nov 2005 06:14:54 +0000 |
| Subject: | note 56142 deleted from function.filesize by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98300@lists.php.net to get a copy of this message | ||
Note Submitter:
----
this is really ugly, but its the only way I have been able tp get filesize on large files (for
example 3.8G) - *nix only
$filesize = shell_exec("ls -s -h ".$file);
Then strip out the non-filesize portion of the result in any way you please