doesn't download big files

doesn't download big files

Page 1 of 1

3 Replies - 894 Views - Last Post: 21 August 2010 - 06:19 AM Rate Topic: -----

#1 Guest_levonnikox*


Reputation:

doesn't download big files

Posted 20 August 2010 - 10:53 PM

Hi everybody!!
I got a new question in may new script

    header("Pragma: public");

    header("Expires: 0");

    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");

    header("Cache-Control: public");

    header("Content-Description: File Transfer");

header('Content-Type: application/octet-stream');



$rr="filename.exe";

header('Content-Length: file source');

header('Content-Disposition: attachment; filename='. $rr);



readfile("file source");


This script worked correctly until I didn't upload a file which size was 700 Mb and I can't download it by this script!

In browser it's writing
Firefox can't find the file at http://up-club.com/dow.php?id=LUVzGT.

    *   Check the file name for capitalization or other typing errors.
    *   Check to see if the file was moved, renamed or deleted.

I think the problem is in file size-how can I solve it??

This post has been edited by levonnikox: 20 August 2010 - 10:56 PM


Is This A Good Question/Topic? 0

Replies To: doesn't download big files

#2 CTphpnwb  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2934
  • View blog
  • Posts: 10,151
  • Joined: 08-August 08

Re: doesn't download big files

Posted 21 August 2010 - 06:09 AM

See:
http://us3.php.net/m...file-upload.php
The upload_max_filesize is usually 10mb. You can alter this, but at 700mb you might also need to alter the time limit for the script:
http://us.php.net/set_time_limit
Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,495
  • Joined: 23-August 08

Re: doesn't download big files

Posted 21 August 2010 - 06:13 AM

I'm confused as to whether this is a download or an upload question at this point. :blink:
Was This Post Helpful? 0
  • +
  • -

#4 Guest_levonnikox*


Reputation:

Re: doesn't download big files

Posted 21 August 2010 - 06:19 AM

no download-I have uploaded it by ftp not by browser-I can download it by it's direct link but this script can't download the file!!
Was This Post Helpful? 0

Page 1 of 1