469,282 Members | 1,945 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

Connections to external sites, fallback to mirrors

I have a script that incorporates content from an external site
($rootdomain). During peak traffic periods the external site experiences
severe slowdowns, thereby slowing down the site here. The external site does
have some secondary mirrors, which I would like to revert to if the primary
does not respond, say within 2 or 3 seconds.

Here's the bit of the script that does the connection:

$fp = fopen( $rooturl, "r" );
$html = join( "", file( $rooturl ) );
fclose ( $fp );

Any ideas?

Jul 16 '05 #1
0 1337

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mudge | last post: by
6 posts views Thread by Chris McAvoy | last post: by
4 posts views Thread by Angelos | last post: by
1 post views Thread by Hisham Al-Shurafa | last post: by
4 posts views Thread by YASIN786 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.