|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-22 12:19 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
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.