Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/03/2005, 11:03
maritomarito
 
Fecha de Ingreso: octubre-2004
Mensajes: 46
Antigüedad: 19 años, 6 meses
Puntos: 0
Exclamación *Conflictos entre <HEAD> y header en php

No se por que da un conflicto el <HEAD> de htm con el

header("content-type: image/jpeg",false); que esta en mi codigo php...
.................................................. .........no seee
si uso el codigo php solito y lo ejecuto si me lee la imagen
pero al ponerlo en el htm con el php me sale puro codigo binario......

estoy seguro que algo debe ver los head y header
ayuda plis...


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type: " content="text/html; charset=iso-8859-1">
</head>
<?php
//Conexion con la base
$link=OCILogon("123","132","123");
$sql1= "SELECT b.imagen from libros@uees a,caratulas@uees b where a.codigo='005660' and a.codigo=b.lib_codigo order by a.codigo";
$result = OCIParse($link,$sql1);
$stmt=OCIParse($link,$sql1);
//$blob=OCINewDescriptor($link,OCI_D_LOB);
OCIExecute($stmt);
while (ocifetch ($stmt))
{
$imagen=ociresult($stmt,1);
header("content-type: image/jpeg",false);

}
$x=100;
$y=100;
OCILogOff($link);

?>

<body>
<img name="imagen" src="<?php echo $imagen?>" width="<?php echo $x?>" height="<?php echo $y?>" alt="">
</body>
</html>