PHP 4.0 Bug #9666: Can't display image/pjpeg and image/gif in one sanme page

From: Date: Sat, 10 Mar 2001 08:19:26 +0000
Subject: PHP 4.0 Bug #9666: Can't display image/pjpeg and image/gif in one sanme page
Groups: php.dev 
Request: Send a blank email to php-dev+get-48571@lists.php.net to get a copy of this message
From: hellmarch@263.net Operating system: Linux PHP version: 4.0.3pl1 PHP Bug Type: *Graphics related Bug description: Can't display image/pjpeg and image/gif in one sanme page I am using php 4.03pl1 version on linux now.I found that bug:i use mysql's BLOB mode to record a gif or jpg binary data stream,when i read them out and display them in one same page,gif or jpg will not display on page at the first time i load the page.Must refresh the page,the two type can be displayed. I don't know if this is a bug or not,so,thanx a lot. Attach,my program: <? require("config.inc"); $db = mysql_connect($db_server,$db_user,$db_pass) or die('Can't connect db server'); mysql_select_db($db_name) or die('Can't connect to read database'); $sql = "select data,filetype from images where name='$name'"; $res = mysql_query($sql,$db); $data = mysql_result($res,0,"data"); $type = mysql_result($res,0,"filetype"); Header( "Content-type: $type"); echo $data; mysql_close(); ?> -- Edit Bug report at: http://bugs.php.net/?id=9666&edit=1

« previous php.dev (#48571) next »