I have a question regarding the SVN client that has been provided here at this site.
Actually, i have downloaded the package and trying to execute the example.php as it is. When i execute the script, nothing happens. I noticed while debugging the *Resquest* method under *phpsvnclient.php* class that the parameter *$http->response_status* has a null value, which infact leads the default switch case to be true and hence finally returns the value *false*. And that means an empty array *$files_now* in the *example.php*
Could somebody please help me out fidning the reason for this?
Thanks in advance!
|2008-06-18 15:57:40 - In reply to message 1 from Suleman|
|I digged it little deeper and found the actualy error, which is: |
110 could not connect to the host "php-ajax.googlecode.com.
This is i guess timeout error. I tried the SVNClient Tortoise on my local windows machine and it downloads the module from the repository correctly.
Cesar D. Rodas
|2008-06-18 17:20:46 - In reply to message 2 from Suleman|
Sorry for the delay of my answer... It will be more useful if I can have a debug message. For that you'll need to edit the phpsvnclient.php, and change the constructor for:
$http = & $this->_http;
$http = new http_class;
$http->debug = 1;
$http->debug_html = 1;
$http->user_agent = "phpSVNclient (http://cesars.users.phpclasses.org/svnclient)";
Please copy here the debug and i will help you.
Also, I'd to tell you that deadpan110 start a fork of this class, and I joined him, so soon we'll improved this code, and it will be have more functionality, and will be work for local repos.
|2008-06-19 08:44:56 - In reply to message 3 from Cesar D. Rodas|
Thanks for your reply, and here is the debug message:
Connecting to php-ajax.googlecode.com Resolving HTTP server domain "php-ajax.googlecode.com"... Connecting to HTTP server IP 22.214.171.124 port 80...
When i print response status *$http->response_status* at line 421 in phpsvnclient.php class, is still get null and that leads to default case.
The *$this->SetError($error)* at line 685 in http.php class, prints value: "110 could not connect to the host "php-ajax.googlecode.com""
When I used my own local SVN url (https://eu0505.lyceu.net/svn/search-beagle), i got this error message: *Connecting to eu0505.lyceu.net establishing SSL connections requires the OpenSSL extension enabled*
my php installation: phpinfo()
PHP Version 4.4.7
System Linux eu1935 126.96.36.199vmware #1 SMP Mon Jun 25 16:50:50 CEST 2007 i686
Build Date Dec 4 2007 11:37:18
Configure Command './configure' '--prefix=/opt/php4' '--with-apxs2=/opt/httpd-fe/bin/apxs' '--with-config-file-path=/opt/httpd-fe/conf' '--enable-eaccelerator=shared' '--with-curl=/opt/apps/curl-7.10.5' '--with-dom=/usr' '--with-iconv-dir=/usr' '--with-iconv' '--with-expat-dir=/usr' '--with-zlib-dir=/usr' '--with-mysql=shared,/opt/apps/mysql-feclient-5.0.41' '--with-openssl=shared' '--enable-memory-limit' '--enable-track-vars' '--enable-safe-mode' '--enable-xslt' '--with-xslt-sablot' '--with-sqlite' '--without-pear'
CURL support enabled
CURL Information libcurl/7.10.5 OpenSSL/0.9.7e zlib/1.2.2
CURL Lycos Patch Multi Interface enabled
CURL Lycos Patch Milisecondstimeout enabled
CURL Lycos Patch Totaltimout enabled
|2008-06-24 10:12:35 - In reply to message 4 from Suleman|
Cesar D. Rodas
|2008-06-26 12:52:15 - In reply to message 4 from Suleman|
|It seems as if you need the OpenSSL bundled into your PHP.. can you try on other hosts?|
|2008-06-26 13:27:07 - In reply to message 6 from Cesar D. Rodas|
|Well but incase of example.php where http://php-ajax.googlecode.com is used as an SVN url, I dotn think we need openSSL?|
Cesar D. Rodas
|2008-06-26 14:42:40 - In reply to message 7 from Suleman|
|You're right, but when you try to connect to https://eu0505.lyceu.net/svn/search-beagle, you need SSL. And it seems as if your host can't connect to http://php-ajax.googlecode.com, can you ping this address or telnet it to port 80?|
|2008-06-26 15:20:57 - In reply to message 8 from Cesar D. Rodas|
|Ping is successful with http://php-ajax.googlecode.com|
|2008-06-27 12:18:24 - In reply to message 9 from Suleman|
|Sorry ya are right, the problem why i am unable to access your remote svn repository is due to the fact that i'm not allwoed to access the outer world from my linux sandbox but through proxy only. So could you please guide me a bit where exactly in the library it is possible to edit and include proxy url to communicate with your svn server?|
The reason why i said yes earlier, is beacuse i used cmd prompt from my windows machine and there i had no problems in doing ping/telnet to your svn machine.