471,896 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,896 software developers and data experts.

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 1394

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
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.