MIME type
| From: | Angelo Zanetti | Date: | Tue, 11 Sep 2007 15:46:05 +0000 |
| Subject: | MIME type | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-261949@lists.php.net to get a copy of this message | ||
Hi guys.
I am linking to a file on a WAP site. the backend is written in PHP. However I need to link to a file but set the content type. I've done the following and am wondering if this is correct:
<?
// We'll be outputting a PDF
header('Content-type: application/vnd.symbian.install');
// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="../File/norEnglish.sis"');
?>
So basically I set the HREF to the file above (filename .php).
Let me know if there is anything that im doing incorrectly.
Thanks
--
------------------------------------------------------------------------
Angelo Zanetti
Systems developer
------------------------------------------------------------------------
*Telephone:* +27 (021) 552 9799
*Mobile:* +27 (0) 72 441 3355
*Fax:* +27 (0) 86 681 5885
*
Web:* http://www.zlogic.co.za
*E-Mail:* angelo@zlogic.co.za <mailto:angelo@zlogic.co.za>