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

234
Views
How to download file from url without opening new tab

How to be able to download video in mobile browser when clicking on a link without opening a new tab in the browser. I have scoured google and tried many cases including setting header, using readfile(Url) but still not working on mobile browser. let's say my url is: video_play my php code:

header('Content-Type: ' . $mContentType);
header('Content-Length: ' . $mContentLength);
header('Expires: 0');
header('Content-Transfer-Encoding: binary');
header("Content-disposition: attachment;filename=" . "'" . $file_name . "'");
flush();
readfile($Url);
exit();
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!