Re: go-pear installer question/bug
| From: | Vitaliy N. Kravchenko | Date: | Tue, 10 Dec 2002 19:10:14 +0000 |
| Subject: | Re: go-pear installer question/bug | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-11507@lists.php.net to get a copy of this message | ||
I have solved this problem:
download go-pear.php from:
http://dickmann.homeunix.org/pear/pearweb/public_html/go-pear.php
in that script I found lines:
...
if (!empty($proxy) && $tmp_proxy['user'] != '') {
$request .= 'Proxy-Authorization: Basic ' .
base64_encode($tmp_proxy['user'] . ':' . $tmp_proxy['pass']) .
"\r\n";
} // if
...
Why we don't have this lines in script located on http://go-pear.org
?
Strange..
Then go-pear ask me for proxy:
...
HTTP proxy (host:port), or Enter for none [http://proxy.cad:8080/]:
I typed: http://proxy_user:proxy_password@proxy.host:port/
And all works fine. :)
BTW: I try to use the same (go-pear) script from the WEB to install
pear-packages with proxy - it works fine too.
But: configs are incompatible
if I install package from WEB, It's not present in command-line
'pear list'
And one more thing
for run 'pear' I change 1-st line
from
#!/usr/local/bin/php -Cqd include_path=/usr/home/kvn/bin/PEAR/pear
to
#!/usr/local/bin/php -Cq -d include_path=/usr/home/kvn/bin/PEAR/pear
because if not - pear does not work, and no errors displayed..
So, I hope this information help somebody to start using pear installer,
and go-pear script.
P.S. Sorry for my english, it's not my prefer language.
Thanks.
"Vitaliy N. Kravchenko" wrote:
>
> Hello.
> I simplyfy my question:
> How to set up go-pear.php using proxy with Basic Authentification?
> Is it possible?
>
> or how to set proxy_user/proxy_pass in go-pear script?
--
kVn
PHP4You <http://php4you.kiev.ua>