Latest news
Home » PHP » File download zend framework php script

File download zend framework php script

File download zend framework php script

<?php
$imagePath = getcwd().’/public/images/smartips_log.png’;
header(‘Content-Type: image/jpeg’);
header(‘Content-Disposition: attachment; filename=smartips_log.png’);
readfile($imagePath);

?>

Leave a Reply

x

Check Also

How to print Codeigniter upload error

if you want to display errors on upload functionality in codeigniter. Use the following function ...