• 0

[PHP] Download Multiple Files at once


Question

I have a php page that needs to download a bunch of images (5~100)... right now I'm doing it in a loop, so it doesn't try to download the next one until the previous one is done.... Because I'm using these images to create my page, it takes a good 10~15 seconds in some cases for the page to load.

I'm looking for some way to download kind of like a browser, where it opens up multiple connections simultaneously to download all the images at the same time. Does something like this exist in php?

Link to comment
https://www.neowin.net/forum/topic/731990-php-download-multiple-files-at-once/
Share on other sites

5 answers to this question

Recommended Posts

  • 0

ya i was just reading this demonstration...

http://immike.net/scripts/youtube-user-forked.php.txt

what I'm reading on the webs is that it is highly discouraged on a web server (where I was planning on using it)... which is why they don't compile it in apache by default and I'm not able to use pcntl_fork out of the box... grr

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.