note 37505 deleted from function.fopen by tularis
| From: | tularis@php.net | Date: | Mon, 26 Dec 2005 14:20:35 +0000 |
| Subject: | note 37505 deleted from function.fopen by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100733@lists.php.net to get a copy of this message | ||
Note Submitter: Bill Fletcher
----
I had the same problem mentioned by Tim Fountain below: trying to open a file larger than 2 GB to
read it throws the error "Value too large for defined data type" . (This error is explain
in the online manual under filesize(), but no workaround for OPENING files is given.)
After lots of Googling (mainly to unanswered forum questions) I found a workaround on a Perl forum:
open a pipe to "cat filename":
$fh = popen("cat $filename", "r");
Hope this saves someone some of the grief I've just gone through!
Bill