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

Export Database using codeigniter

Database Utility Class : CodeIgniter PHP script to download mysql db-codeigniter,Backup MySQL database with CodeIgniter ...