note 87163 added to function.filesize

From: Date: Sat, 22 Nov 2008 01:36:46 +0000
Subject: note 87163 added to function.filesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-146820@lists.php.net to get a copy of this message
I use the CLI version of PHP on Windows Vista and work with large (~ 10G) Virtual Machine files. Here's how to get a NTFS file's size without the 4G limit: <?php function dos_filesize($fn) { if (is_file($fn)) return exec('FOR %A IN ("'.$fn.'") DO @ECHO %~zA'); else return '0'; } ?> This should work on any Windows OS that provides DOS shell commands. ---- Server IP: 69.147.83.197 Probable Submitter: 76.3.20.246 ---- Manual Page -- http://www.php.net/manual/en/function.filesize.php Edit -- https://master.php.net/note/edit/87163 Del: integrated -- https://master.php.net/note/delete/87163/integrated Del: useless -- https://master.php.net/note/delete/87163/useless Del: bad code -- https://master.php.net/note/delete/87163/bad+code Del: spam -- https://master.php.net/note/delete/87163/spam Del: non-english -- https://master.php.net/note/delete/87163/non-english Del: in docs -- https://master.php.net/note/delete/87163/in+docs Del: other reasons-- https://master.php.net/note/delete/87163 Reject -- https://master.php.net/note/reject/87163 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#146820) next »