I am having a download link to an image. When a user clicks this, he will be readirected to page, where I have used PHP readfile function and force download to the user. But this is what is getting downloaded instead of the image.
<br />
<b>Notice</b>: Undefined index: HTTP_ACCEPT in <b>/home2/public_html/library/Tera-WURFL/WurflSupport.php</b> on line <b>63</b><br />
<br />
<b>Fatal error</b>: Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in /home2/public_html/library/Tera-WURFL/WurflSupport.php, line 63' in /home2/public_html/Zend/library/Zend/Controller/Response/Abstract.php:321