Force file Download - Really Useful & Handy PHP Code Snippets
Force file Download
Force file Download Provide files to the user by forcing them to download
تحمیل دانلود فایل
با دانلود اجباری فایل ها آن ها را برای کاربر آماده می کند.
********************/
file - path to file@*
/*
(function force_download($file
}
} ((( if ((isset($file))&&(file_exists($file
; ((header("Content-length: ".filesize($file
; ( 'header('Content-Type: application/octet-stream
;( ' " ' . header('Content-Disposition: attachment; filename="' . $file
;(readfile("$file
} else {
; " echo "No file selected
{
{
ویرایش توسط Islander : 03-09-2014 در ساعت 07:57 PM
|