Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

78
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!