Forum Moderators: coopster

Message Too Old, No Replies

checking downloads for 404?

php perl?

         

skit_au

7:43 pm on Jun 12, 2003 (gmt 0)

10+ Year Member



On my site I link to like winzip and other downloads with 5 mirrors incase one is down. Is there a way in php (or perl but php pref) to when the link is clicked the script trys each link till it finds a working one and then starts the download?

Thanks
sk

jatar_k

4:14 pm on Jun 13, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld skit_au,

You could use an fopen [ww.php.net] and see if it creates the pointer. If not then move on to the next host until you find one.

I thought about this a bit and that seemed the simplest, though anyone else feel free to show me up. ;)