PHP file handle for big files?

etemelkuran1676

New Member
YetiShare User
Jul 29, 2012
4
0
0
Hi , as you know php can't handle files over 1.8 , 2 gb..
( php 5.4.6 x64, php 5.3.16 x64 ) with some functions like readfile.

Is there any way to eliminate this problem?
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Hi,

This is a limitation on the PHP build. HTTP isn't really designed for really large files although there are way round it by modifying PHP itself:

http://stackoverflow.com/questions/4614147/uploading-a-file-larger-than-2gb-using-php

Until PHP natively supports files larger than 2 GB there's not a great deal we can do from the script. Of course the other option is to split the file into smaller pieces.

Regards,
Adam.