cvs: phpweb / downloads.php

From: Date: Mon, 22 Jul 2002 16:52:22 +0000
Subject: cvs: phpweb / downloads.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-11428@lists.php.net to get a copy of this message
sas Mon Jul 22 12:52:22 2002 EDT Modified files: /phpweb downloads.php Log: The 'find_closest_mirror' func always returned a "http://" prefixed string, so fix the links appropiately. Also, use us/us2/us3.php.net as fallback download servers instead of www.php.net. Index: phpweb/downloads.php diff -u phpweb/downloads.php:1.114 phpweb/downloads.php:1.115 --- phpweb/downloads.php:1.114 Mon Jul 22 12:24:17 2002 +++ phpweb/downloads.php Mon Jul 22 12:52:22 2002 @@ -75,15 +75,18 @@ $mirror = $cm[0]; } else { echo "You can change mirrors at the bottom of the page."; - $mirror = 'www.php.net'; + srand(); + + $default_mirrors = array("http://us2.php.net/", "http://us.php.net", "http://us3.php.net"); + $mirror = $default_mirrors[rand(0, count($default_mirrors)-1)]; } ?> </p> <h2>Complete Source Code</h2> <ul> - <li><a href="http://<?php echo $mirror; ?>/distributions/php-4.2.2.tar.bz2">PHP 4.2.2 (tar.bz2)</a> [2,654Kb] - 22 July 2002</li> - <li><a href="http://<?php echo $mirror; ?>/distributions/php-4.2.2.tar.gz">PHP 4.2.2 (tar.gz)</a> [3,319Kb] - 22 July 2002</li> + <li><a href="<?php echo $mirror; ?>/distributions/php-4.2.2.tar.bz2">PHP 4.2.2 (tar.bz2)</a> [2,654Kb] - 22 July 2002</li> + <li><a href="<?php echo $mirror; ?>/distributions/php-4.2.2.tar.gz">PHP 4.2.2 (tar.gz)</a> [3,319Kb] - 22 July 2002</li> </ul> <h2>Patches to latest version</h2> @@ -97,7 +100,7 @@ <h2>Windows Binaries</h2> All Windows binaries can be used on Windows 95/98/Me and on Windows NT/2000/XP. <ul> - <li><a href="http://<?php echo $mirror; ?>/distributions/php-4.2.2-Win32.zip">PHP 4.2.2 zip package</a> [5,275Kb] - 22 July 2002<br> + <li><a href="<?php echo $mirror; ?>/distributions/php-4.2.2-Win32.zip">PHP 4.2.2 zip package</a> [5,275Kb] - 22 July 2002<br> (CGI binary plus server API versions for Apache, Apache2 (experimental), ISAPI, NSAPI, Servlet and Pi3Web. MySQL support built-in, many extensions included, packaged as zip)</li> <?php /*

« previous php.mirrors (#11428) next »