Ssaurz Acharya - 2017-01-23 12:43:09 -
In reply to message 3 from naveen
Hi, this is simple the example
function downloadVideo($video_file_url, $extension, $title)
{
$header_info = get_headers($video_file_url, 1);
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.$title.'.'.$extension.'"');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . $header_info["Content-Length"]);
readfile($video_file_url);
}