FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Automatism select mirror sites!

 


webbone
I want to konw how to come true Automatism select mirror sites!
When a guest user of site to visit a site,The site can select fast space to supply!
jasperlevink
Hello. It should be possible. You could send small packages to all mirrors and find out which responses first.

But where is it for? Downloading big files? Or just people visiting your site? If you just want to choose the fastest for your visitors you'd better invest in your hoster.

Grtz.
Jasper
martindecorte
You could consider that most people have a computer running in the same language as the country where they live.

So, the following php command basically returns the language used by your browser (coded in 2 letters)
Code:
substr(getenv("HTTP_ACCEPT_LANGUAGE"),0,2)


You can then write a switch that sets the proper mirror, following the detected language.

That would by my basic easy idea. It's not HTML-CSS though, but php.
jasperlevink
I didn't understand that language selection was the primary idea
Grtz.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.