Jump to content

What is the best way to download a file in the background?


Disturbed

Recommended Posts

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?

 

 

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.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.