Welcome Guest, Not a member yet? Register   Sign In
Impossible Force Download
#1

[eluser]deltajam[/eluser]
Ugh. I am frustrated. I do not know much about headers, and php streaming ... and the like, so I'm possibly ignorantly frustrated.

Here is my code:

Code:
$data = file_get_contents( base_url() . "media/downloads/movie.mov");
        
$name = 'myphoto.jpg';

force_download($name, $data);

The file is 40mb, and I have some that are in excess of 150mb. At first I was getting a blank page, which was caused by a leading slash in my url. After that change, I get this error:

Code:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 8192 bytes)

Does anyone have any suggestions for an average hack like me? My hosting is with iPower (equally frustrating).


Messages In This Thread
Impossible Force Download - by El Forum - 10-22-2008, 03:02 PM
Impossible Force Download - by El Forum - 10-22-2008, 03:20 PM
Impossible Force Download - by El Forum - 10-22-2008, 05:03 PM
Impossible Force Download - by El Forum - 10-23-2008, 08:31 AM
Impossible Force Download - by El Forum - 10-23-2008, 09:37 AM
Impossible Force Download - by El Forum - 10-23-2008, 10:50 AM
Impossible Force Download - by El Forum - 10-23-2008, 12:29 PM
Impossible Force Download - by El Forum - 10-23-2008, 02:13 PM
Impossible Force Download - by El Forum - 10-23-2008, 02:27 PM
Impossible Force Download - by El Forum - 10-23-2008, 03:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB