I recently installed the add-on "DownThemAll" into my firefox and as I watched it download a huge amount of pk3 files(map files for an opensource First Person Shooter), I wondered if I could do the same with PHP.
Here's what I'm thinking:
foreach(glob("http://www.someaddress.ext/path/*.pk3") as $link) {
//do something to download...
}
Yeah that's about as far as I've gotten. I'm wondering wheter to just initiate a download of to do it via a stream... I don't really know my way around this material, it's not what I usually do with PHP, but it's triggered my interest.
So is there anybody who knows how to tackle this problem?