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?
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.
Suleman - 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 220.127.116.11 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 18.104.22.168vmware #1 SMP Mon Jun 25 16:50:50 CEST 2007 i686
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?
Suleman - 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.