I'm trying to download a video source file from our video host, Ooyala, but the filename for these files is long, not descriptive, and has no extension. Since these files will be downloaded by many different types of people I want to fix this, so I'm setting the headers and reading the file to the output buffer with the following code:
ini_set('max_execution_time', 7200);
header('Content-Length:'.$video_file_size);
header('Content-type: binary/octet-stream');
header('Content-Disposition: attachment; filename=movie.'$video_file_extension);
readfile($video_url);
I assume that a script like this will be "running" for the entirety of the download, so I set the 'max_execution_time' to 7200 with ini_set and everything is working great. So now I'm just wondering if there is any other precaution I should take? Maybe the max memory or something?
THANKS!