Problems with filesize() and large files

From: Date: Mon, 09 Sep 2002 22:07:05 +0000
Subject: Problems with filesize() and large files
Groups: php.general 
Request: Send a blank email to php-general+get-115786@lists.php.net to get a copy of this message
Hi, I need the filesize in PHP for very large files, over 2 Gigabyte. The problem is that the integer returns the size in byte as an integer. If the integer is too big, it returns an negative value. Is it possible to extend the integer to 64 bit ? Or any other solution, to solve this problem ? Example: C:\php423\php>php -q c:\devel\filesize.php int(-834864026) Which checks the size of a 3 Gigabyte file. Many thanks, Kurt

« previous php.general (#115786) next »