Php implements the method of directly opening and downloading images ,. Php implements the method of directly opening and downloading the changed image. This article describes how php enables direct opening and downloading of the changed image. Share it with you for your reference. The details are as follows: p php implements the method to change the image to open for download directly,
The example in this article describes how php can directly open and download images. Share it with you for your reference. The details are as follows:
The process. php file is as follows:
$ File = $ _ GET ['file']; header ("Content-type: octet/stream"); header ("Content-disposition: attachment; filename = ". $ file. ";"); header ("Content-Length :". filesize ($ file); readfile ($ file); exit;
The html file is as follows:
Image goes Here
I hope this article will help you with php programming.
Example. Share it with you for your reference. Details: p...