Thursday, May 17, 2018

download image in php



// Output and free from memory
header('Content-Type: image/png');
//header('Content-Type: image/jpeg');
header("Content-Transfer-Encoding: binary");
header('Content-Description: File Transfer');
header('Content-Type: ' ,'pdf');
//header('Content-Length: ' . $file_size);
header('Content-Disposition: attachment; filename=' . $dest);
header('Content-Type: image/png');

No comments:

Post a Comment

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...