By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,746 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,746 IT Pros & Developers. It's quick & easy.

Connections to external sites, fallback to mirrors

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.