note 37791 added to function.fopen

From: Date: Thu, 27 Nov 2003 10:11:35 +0000
Subject: note 37791 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-61021@lists.php.net to get a copy of this message
If you want to open large files (more than 2GB) that's what I did and it works: you should recompile your php with the CFLAGS="-D_FILE_OFFSET_BITS=64" ./configure etc... This tells to your compiler (I tested only gcc on PHP-4.3.4 binary on Linux and Solaris) to make the PHP parser binary large file aware. This way fopen() will not give you the "Value too large for defined data type" error message. God bless PHP ciao Sergio Paternoster ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37791 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37791&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37791&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61021) next »