php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26888 my.php could use the mirror closest to proxy instead of user machine
Submitted: 2004-01-12 20:23 UTC Modified: 2004-01-19 16:16 UTC
From: cjbj at hotmail dot com Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
 [2004-01-12 20:23 UTC] cjbj at hotmail dot com
Description:
------------
The mirror chosen by php.net seems to be the closest one to my
physical location.  It would be marginally faster/better if the
nearest mirror to the proxy server I am using was chosen.

Although I can choose a mirror on the my.php page, I sometimes need to
change the browser proxy (to one in another country on the corporate
network).  Also, by default, a load balancer automatically chooses the
proxy for me.  These negate the benefits of setting a mirror.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-19 10:36 UTC] goba@php.net
As you can see in the code of i2c_realip() implemented in ip-to-country.inc [1], we try to do our best NOT TO use the proxy server. This is because there might be a proxy server attached to the server to load-balance... Also we need the country information to display events in a special form, so we need the user's country, and not the proxy's country. If we would not select a mirror for you, then you would probably use www.php.net without a thought, and it is in the US. So your autoswitching load-balancer would not be served better that way either...

[1] http://php.net/source.php?url=/include/ip-to-country.inc
 [2004-01-19 16:16 UTC] cjbj at hotmail dot com
No probs.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 23:00:01 2026 UTC