ID:               25946
 Updated by:       [EMAIL PROTECTED]
 Reported By:      nelson_cerqueira at sapo dot pt
-Status:           Open
+Status:           Bogus
 Bug Type:         CGI related
 Operating System: Windows XP Pro
 PHP Version:      4.3.3
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

Dupe of bug #25863


Previous Comments:
------------------------------------------------------------------------

[2003-10-22 05:31:59] nelson_cerqueira at sapo dot pt

Description:
------------
I have a mysql database with a blob field, i  the page that return the
binary image from an iframe, the first time that i call the parent, 2
in 3 times this message apears:

CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:

After this if i reload the page the image apears.


Reproduce code:
---------------
"parent.php"
...<td width="307"><div align="right">
<?php
        echo "<IFRAME SRC='imagens.php?id=$imagem' WIDTH='307' HEIGHT='230'
FRAMEBORDER='0' name='img'  noresize marginheight='0'
scrolling='no'></IFRAME>";
?>
</div></td>...

"imagens.php"
<?php
$id_img=$_REQUEST['id'];
if($id_img) {
   header( "Content-type: image/jpeg");
   $db_img="labsig";
   $mysql_access_img = mysql_connect("localhost");
   mysql_select_db($db_img, $mysql_access_img);
   
$result_img = mysql_query("SELECT imagem FROM imagem_projectos WHERE
id=$id_img", $mysql_access_img);

$data_img = mysql_result($result_img,0,"imagem");
echo $data_img;
        
};         
?>

Expected result:
----------------
I expected that when i load the parent the image loads, but it don't
always load, only 1 in 3 times, or less.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25946&edit=1

Reply via email to