Disturbed Posted December 17, 2008 Share Posted December 17, 2008 If I need to download a file and want to do it in the background that is neither php nor browser wait for the file to download. What's the best way to do it? I used a shell command that runs in the background and that's working fine. But I don't like it. It doesnt look right. I am thinking I should just use a php standard file get and run it as a thread or process that can be run in the background. Can I do this in php? Do you have any other suggestions? Link to comment https://forums.phpfreaks.com/topic/137313-what-is-the-best-way-to-download-a-file-in-the-background/ Share on other sites More sharing options...
corbin Posted December 17, 2008 Share Posted December 17, 2008 Yeah you can do that in PHP, but PHP would be over kill. wget or curl would work just fine, unless you need more capabilities. Link to comment https://forums.phpfreaks.com/topic/137313-what-is-the-best-way-to-download-a-file-in-the-background/#findComment-717464 Share on other sites More sharing options...
Disturbed Posted December 17, 2008 Author Share Posted December 17, 2008 Well i dont like running shell because it feels a bit unsecure and it's just to rigid. Also how do I track progress on a shell command? I've done some research and not a whole lot of ppl recommending threading. So donno hoping some ppl have some other suggestions. Link to comment https://forums.phpfreaks.com/topic/137313-what-is-the-best-way-to-download-a-file-in-the-background/#findComment-717469 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.