Re: results of work
| From: | Greg Beaver | Date: | Sat, 24 Sep 2005 04:10:39 +0000 |
| Subject: | Re: results of work | ||
| References: | 1 2 3 4 5 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2978@lists.php.net to get a copy of this message | ||
Sara Golemon wrote:
> You know what would help reassure me? Some download statistics which
> indicate the installer being used.
>
> Is this possible? If not, how about adding a modified user_agent
> setting so that we can track this in the future.
Sure, this is the current string sent by downloadHttp:
$request .= "Host: $host:$port\r\n" . $ifmodifiedsince .
"User-Agent: PHP/" . PHP_VERSION . "\r\n";
I will simply change that to:
$request .= "Host: $host:$port\r\n" . $ifmodifiedsince .
"User-Agent: PEAR/@package_version@/PHP/" . PHP_VERSION .
"\r\n";
and use a replacement. This will mean that a possible user agent is
PEAR/1.4.1/PHP/4.3.11, for instance.
The other task is to see if a simple script can be run occasionally to
grab all instances of PEAR/*/PHP/* and PHP/* from the Apache log and
generate a graph based on php version/pear version.
Greg