Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

79
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda