note 21266 added to function.header

From: Date: Sun, 05 May 2002 22:18:07 +0000
Subject: note 21266 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-30235@lists.php.net to get a copy of this message
binary data, such as images are stored in mySQL db, when they are called in browser using: -------start of file.php:------- <? ... select image from db store in $image ... header("Content-type: $filetype"); ?> <html><body> <?php echo "$image";?><br> Image should appear above. </body></html> -------end of file.php:------- None of the text/html content-types appear. Is there a mixed or multi-type work around for this? Basically, I want to dynamically create a webpage with image calls and text all generated from the database. -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+21266 http://master.php.net/manage/user-notes.php?action=delete+21266 http://master.php.net/manage/user-notes.php?action=reject+21266

« previous php.notes (#30235) next »