Ver Mensaje Individual
  #196 (permalink)  
Antiguo 19/11/2004, 10:58
bananas
 
Fecha de Ingreso: junio-2004
Ubicacin: ORENSE
Mensajes: 258
Antigedad: 19 aos, 10 meses
Puntos: 0
Enhorabuena Cluster el script me funciona perfectamente,el problema que tengo ahora es que las imagenes las tengo que mostrar en una pagina .php que contiene html. y me saca el siguiente error y ademas me escribe a continuacion una serie de simbolos:
Cita:
Warning: Cannot modify header information - headers already sent by (output started at C:\Archivos de programa\Apache Group\Apache2\htdocs\deroma\pfc\vista\imagenes\ima gen.php:9) in C:\Archivos de programa\Apache Group\Apache2\htdocs\deroma\pfc\vista\imagenes\ima gen.php on line 22

C.&X6Q"nFAڂJҢK"@=* $w(d7an؅{]L-؂e2$OAD0rk-ZZmRPܥ&_N2ULhBU-%/J 2`e@&$5E2 v9mJ+(B,gG 29?HmnM:A"n#[=(]8 UW2Z*J-ekv)PdV2+LVh \9Ka*fW7_GZcQ*L|.f6ՑڒBcE0 R.@$ T+Q(X@QJfF=n36< 3TjQ3bؑA,I jZ B{S1Ǻ"-8#D#$P2E"@ Aa aClL#DXal J 7P@+g7b|Oi*~!3Y:iDGqϨ hOXk-h![@e :UeZJ+X2gYGibBQ** 5Rk ԺQ_pPvY3'fjWYf* (WArJ Qp%`d{BƇbi4-

etc....
Y la pagina imagen.php es:
Cdigo PHP:
<?
session_start
();
?>
<html>
<head>
<title>Imagenes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="JavaScript" type="text/JavaScript">

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

</script>
</head>
<body>
<?

header
("Content-type: $s_foto[1]"); 
echo(
"<img src='$s_foto[0]'>;");
?>
</body>
</html>
En $s_foto es una variable de sesion donde el la posicion 0 guardo el $contenido y en la 1 el $tipo.

ltima edicin por bananas; 19/11/2004 a las 11:01