www.webdeveloper.com
Results 1 to 4 of 4

Thread: readfile - allow download >2GB ??

  1. #1
    Join Date
    Mar 2007
    Posts
    195

    readfile - allow download >2GB ??

    i am using readfile to force downloads and files under 2GB work fine, if they are greater than 2GB than they fail because they are too large

    [function.readfile]: failed to open stream: File too large

    does anyone have any ideas?

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,912
    Are you using output buffering? If so, turn it off just before the readfile():
    PHP Code:
    ob_end_flush();
    readfile('blah/blah/blah');
    ob_start(); // if you need it for remaining output 
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Mar 2007
    Posts
    195
    no i am not

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,912
    How about your memory_limit setting? I'm not sure if it reads the whole file into memory, but it could be the problem.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles