note 35631 added to function.header
| From: | ng4rrjanbiah at rediffmail dot com | Date: | Tue, 09 Sep 2003 07:19:48 +0000 |
| Subject: | note 35631 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55872@lists.php.net to get a copy of this message | ||
You have to use the right MIME type in Content-Type of header to show image or other application
specific files.
A good Reference on MIME is available at http://www.w3schools.com/media/media_mimeref.asp
An extended (downloadable) MIME information is available at FEBD (http://fedb.digitalrice.com)
Here is a short code to demonstrate the usage of MIME type; it shows Google's FavIcon in
browser:
<?php
header('Content-type: image/x-icon');
include("http://www.google.com/favicon.ico");
?>
HTH,
R. Rajesh Jeba Anbiah
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35631
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35631&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35631&report=yes