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

235
Vistas
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
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