Readfile timeout even with set_time_limit!! :(

Discussion in 'PHP' started by ps3ubo, Jul 8, 2010.

  1. #1
       header('Content-Transfer-Encoding: binary');
       header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
       header('Content-Type: '.$content_type);
       header('Content-Length: '.$content_length);
       header('Content-Description: File Transfer');
       header('Content-Disposition: attachment; filename="'.$filename.'"');
       header('Pragma: public');
       header('Expires: 0');
       ob_clean();
       flush();
        @readfile($link) or die("File not found.");
       exit;
    PHP:
    The file is like 600mb big, I run the file and the silly thing gets to 8mb then stops.

    and yes i DO have:
    set_time_limit(0); // fix limit
    error_reporting(0); // fix stuff
    PHP:
    In the header, so I don't know why it still timesout :(
     
    ps3ubo, Jul 8, 2010 IP
  2. themullet

    themullet Member

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #2
    probably a problem with your php.ini - change post_max_size = 8M to post_max_size = 700M should fix your problem
     
    themullet, Jul 8, 2010 IP