Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

80
Vistas
External files with Content-type application/vnd.ms-excel

I am trying to download a .xls when I click a button on my website for this it is loading another page with

header("Content-type: application/vnd.ms-excel");

in the php file

I am also using certain libraries to generate the text that is to be presented in the xls file

echo "<script src = '.....'></script>"

When I remove the header part then the data is presented correctly in the browser but with the header I sometimes get the error "missing files <relative path added to my Downloads folder>", but the text is never present in the xls file which I am generating using the external javascript files

I believe when downloading they make the downloads folder the root and want all the external files to be present on my computer instead of the server

How can I work around this? Thank you

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda