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
paltar
Проблема в следующем:
На сайте все изображения хранятся в директории недоступной с под веб.
Для вывода изображений я написал небольшой скрип (download_uploads.php).
$fh = fopen($path_to_file,r);
$file = fread($fh, filesize($path_to_file));
fclose($fh);
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
$header_to_output = "Content-type: " . $upload_data['mime'];
header($header_to_output);
$header="Content-Disposition:inline;filename=".$upload_data['original_name'];
header($header);
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($path_to_file));
echo $file;
Изображения отображаются прекрасно.
Мне необходимо изменить "Document Title" которое по умолчанию "download_uploads.php (JPEG image ...)".
Возможно ли это ??
Link to comment
Share on other sites
1 answer 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.