php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36015 "Best" download link for PHP
Submitted: 2006-01-14 22:01 UTC Modified: 2006-01-15 12:21 UTC
From: magicaltux at gmail dot com Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: magicaltux at gmail dot com
New email:
PHP Version: OS:

 

 [2006-01-14 22:01 UTC] magicaltux at gmail dot com
Description:
------------
Currently, in the "get" url handler we have :

http://xx.php.net/get/php-x.x.x.tar.bz2/from/a/mirror
http://xx.php.net/get/php-x.x.x.tar.bz2/from/this/mirror
http://xx.php.net/get/php-x.x.x.tar.bz2/from/xx.php.net/mirror

I think it would be interesting to add a handler to select the "best" mirror for the user...

http://xx.php.net/get/php-x.x.x.tar.bz2/from/best/mirror

This would select a random mirror in the same country as the user, or if no country information is available for the user's IP it would fall back to "this".

This would help applications automatically downloading PHP to easily get PHP version. I have 3 applications trying to download PHP directly and for the moment I'm just using the same mirror over and over...




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-15 12:21 UTC] goba@php.net
Use http://php.net/get/php-x.x.x.tar.bz2/from/this/mirror (note the missing mirror selection at the start). This automatically selects a working mirror in your country, and redirects the request to that one. That mirror in return selects itself for download, and provides you with the file. You only need to handle the HTTP redirection you get from php.net.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 00:01:32 2024 UTC