Ver Mensaje Individual
  #8 (permalink)  
Antiguo 30/09/2013, 17:00
Avatar de NSD
NSD
Colaborador
 
Fecha de Ingreso: mayo-2012
Ubicación: Somewhere
Mensajes: 1.332
Antigüedad: 12 años
Puntos: 320
Respuesta: php que muestre imagen

puede que si afecte, encontre este ejemplo en el manual de php sobre el uso de header y el orden:

Código PHP:
Ver original
  1. <?php
  2. $mm_type="application/octet-stream";
  3.  
  4. header("Cache-Control: public, must-revalidate");
  5. header("Pragma: hack");
  6. header("Content-Type: " . $mm_type);
  7. header("Content-Length: " .(string)(filesize($fullpath)) );
  8. header('Content-Disposition: attachment; filename="'.$filename.'"');
  9. header("Content-Transfer-Encoding: binary\n");
  10.                  
  11. readfile($fullpath);
  12. ?>

como se ve, content-type esta antes de content-lenght
__________________
Maratón de desafíos PHP Junio - Agosto 2015 en FDW | Reglamento - Desafios