Ver Mensaje Individual
  #196 (permalink)  
Antiguo 19/11/2004, 10:58
bananas
 
Fecha de Ingreso: junio-2004
Ubicación: ORENSE
Mensajes: 258
Antigüedad: 22 años, 3 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“.&X�À6ÜQ"nF¤Œˆ††AÚ‚ÀJÒ¢¥K"@Š=* Èȵ$€©àw(dÈ7anÀŒªØ…{¸â]Lû-Ø‚e’¬2$OAˆD0rkÓ-ÐZ—ùZõµmRŒö¹®²PÜ¥ÖêÔ&_ˆ¥N2ÏULhBüU-ßÅÖåË%”/J šÌ2å©Í`µeé@&²$£5‰²“E«õŒ2¬ ¥v9¶õ•m¤œJ«+Ô(BÕÔ™´,‰gµG 2ú9?H¹mÉn†ÆMÂ:°A"n#Øî[„=(]8åÊê ºËUÔW2ÕZ*•ŒJÇ-ekv)PdV2+LV�òÏh \9K¾aµ*fÕW™È7Ú_†¾GZ¯cQ¥*Lþð|.¢f6´Õ‘×ãÃÚ’BžcœäE0 R.@ƒ$ªž T•–+Q(X@ª�QJÀfø�ÂØF=�nà36< �ú’ 3TjŠQ›€3bØ‘˜A‘�,�IÔö¢ jZ“ B„{SÃ1Ǻ�"-…8×#D¶#$P‚2E�"@ Aa¢ aClL°#D¶ÊXal Jú“ 7P@+gÑæã7Úb|§O¯i‡‘�¥*ô±~!3ùYæþ:ïiÍDö�GñqüϨ²Öñ h¦OÛX”k-h!‘™[@e :¨’UeÈZ”èJÄ+X…û¬ê2gÝY�“Gi³b”¯BQ** •¬5£RÅk« Ôº¤ªèQž_pÅPvÈîY3'�fjWYfºÈ* (†WAå¬rÖJ ÕQpƒ°á%`dè{BƇµ©b±iÑÝÛæ4-

etc....
Y la pagina imagen.php es:
Código 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 edición por bananas; 19/11/2004 a las 11:01