esli ya poprobuyu download s takim imenam: download.php?f=log ' ins.doc on na disk soxronyaet tolko (' ins.doc) i vnutri dannie ischezaet... pomogite pojaluysta kak eto delat chto bi fayl soxranilsa s polniy imenam i tak dannie ne poteryali...
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
xaero
Privet vsem !!!
U menya takaya problema:
function download($file_name){
header('Pragma: public');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Cache-Control: private',false);
header('Content-Type: application/force-download');
header('Content-Disposition: attachment; filename="'.basename($file_name).'"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: '.filesize($file_name)); // provide file size
readfile($file_name); // push it out
exit;
}
if(isset($_GET['f'])){
download("download/{$_GET['f']}");
//print urldecode($_GET['f']);
}
esli ya poprobuyu download s takim imenam: download.php?f=log ' ins.doc on na disk soxronyaet tolko (' ins.doc) i vnutri dannie ischezaet... pomogite pojaluysta kak eto delat chto bi fayl soxranilsa s polniy imenam i tak dannie ne poteryali...
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.