skip to Main Content

PHP image download with header – Photoshop

I've successfully implemented some PHP to download an image: PHP: <?php $image = "path/to/image.jpg" header('Content-disposition: attachment; filename=image.jpg'); header('Content-type: image/jpeg'); readfile($image); ?> Here is an example image that I've saved to my server: http://www.thenally.com/work/php-tests/header/files/herzog.jpg If I view the image in the…

VIEW QUESTION

PHP image download with header – Photoshop

I've successfully implemented some PHP to download an image: PHP: <?php $image = "path/to/image.jpg" header('Content-disposition: attachment; filename=image.jpg'); header('Content-type: image/jpeg'); readfile($image); ?> Here is an example image that I've saved to my server: http://www.thenally.com/work/php-tests/header/files/herzog.jpg If I view the image in the…

VIEW QUESTION
Back To Top
Search