Force Download Image in PHP || PHP Tutorial || Player Of Code || Must Watch🎬
Vložit
- čas přidán 9. 09. 2024
- Hello Developers,
Welcome back to my new video. In this video I'm gonna show you how to make force download image in php.
download.php file i created to add this feature which code is I given below:
$link=$_REQUEST['link'];
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($link));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
ob_clean();
flush();
readfile($link);
exit;
How to Remove .html/.php extension from url
• How to Remove HTML Ext...
How to check Internet Connection
• How to Check Internet ...
How to send Email
• How to Send Email in P...
how to generate Certificate
• #1 How to Generate Cer...
How to send message on Whatsapp
• How to Send Message on...
How to make Visitor Counter
• Visitor Counter in PHP...
If you are getting any problem
contact me on Whatsapp: +917054874357
Email:- playerofcode@gmail.com
Visit us:- www.playerofcode.com
Don't forget to like and subscribe my channal.