From 1bf0c1f5aec01418b925f96df432244918c6989d Mon Sep 17 00:00:00 2001
From: Gabor Hojtsy
-Here you can find more information about the mirrors of php.net.
+ Here you can find information about the mirrors of php.net. This table only
+ lists the official mirrors, registered in our database. The mirrors automatically
+ detected to be outdated or disfunctional are not listed for your convinience, so
+ there may be a mirror (or some mirrors) with problems in your country additionaly
+ to those listed here. Therefore if you cannot find mirror sites in your country
+ here, or the mirror site you used seems to be disappeared, check back later.
-Pick a mirror site close to you (the current mirror is highlighted), or visit
-the provider's homepage. If you are interested in hosting a mirror of this site,
-.
+ We would like to advice you to choose a mirror site close to use in your
+ everyday work. All mirror sites are expected to provide the same service
+ (with the possible exception of local search support, in which case the
+ main site performs the search). This means that you don't loose anything,
+ if you go with a local mirror site, but you gain speed. The current mirror
+ is highlighted in the list below.
Mirror Sites
+ Mirror sites also have default language settings, so shortcut navigation + services provide you results in that language. See the + URL shortcuts page for examples of this behaviour. +
++ If you are interested in hosting a mirror of this site, + . +
+| Country | @@ -31,24 +39,39 @@ the provider's homepage. If you are interested in hosting a mirror of this site,Default Language | ||
|---|---|---|---|
| '; - if ($mprevious != $mdata[0]) { - echo $COUNTRIES[$mdata[0]]; - } else { - echo " "; + +// Previous mirror country code +$prevcc = 'aa'; + +// Go through all mirror sites and print out information about them +$MURLS = array_keys($MIRRORS); +foreach ($MURLS as $murl) { + + // If the mirror is not all right, skip it + if (mirror_status($murl) != MIRROR_OK) { continue; } + + // Print out table row, color it specially if current mirror + echo ' | |||
| '; + + // Check country code, and only print + // out country name, if it is a new one + $country = mirror_country($murl); + if ($prevcc != $country) { + echo $COUNTRIES[$country]; + } else { + echo " "; } + + // Print out table cells with mirror information echo ' | ' . make_link($murl, $murl) . - ' | ' . make_link($mdata[3], $mdata[1]) . - ' | ' . $LANGUAGES[$mdata[6]] . ' | ' . make_link(mirror_provider_url($murl), mirror_provider($murl)) . + ' | ' . $LANGUAGES[default_language($murl)] . ' | ' . "\n"; + + // Preserve previous contry code + $prevcc = $country; +} + ?>