note 61233 added to function.filesize

From: Date: Sun, 29 Jan 2006 00:08:40 +0000
Subject: note 61233 added to function.filesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-102643@lists.php.net to get a copy of this message
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: $sizeInBytes = filesize($path); if (!$sizeInBytes) { $command = "ls -l \"$path\" | cut -d \" \" -f 6"; $sizeInBytes = exec($command); } ---- Server IP: 216.194.113.175 Probable Submitter: 24.61.154.115 ---- Manual Page -- http://www.php.net/manual/en/function.filesize.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61233 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61233&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61233&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61233&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61233&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61233&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61233&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61233&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61233&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102643) next »