Are you trying to load the entire file into memory? fread will read only a maximum of 8192 bytes at a time. See http://nz2.php.net/fread. It is not desirable to the memory limit that high nor should it be needed. Most people have it set to a max of about 32 Mb if they are using graphics or less if not.
Tony On Jan 1, 10:58 pm, Michael <[email protected]> wrote: > I am trying to read a 1.9Gb text file and fread() barfs. How can I fix this > situation? > > I have already upped php.ini "memory_limit" to 2500Mb. > > Michael --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
