PHP Classes

problem in example.php class

Recommend this page to a friend!

      PHP SVN Client  >  All threads  >  problem in example.php class  >  (Un) Subscribe thread alerts  
Subject:problem in example.php class
Summary:empty $files_now array in example.php class
Messages:14
Author:Suleman
Date:2008-06-17 15:33:44
Update:2008-07-01 11:27:41
 
  1 - 10   11 - 14  

  11. Re: problem in example.php class   Reply   Report abuse  
Picture of Suleman Suleman - 2008-06-27 13:48:24 - In reply to message 10 from Suleman
I changed the

var $proxy_host_name="eu1936.lyceu.net";

and

var $proxy_host_port=3060;

inside http.php class. I got the following debug message:

--

Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C PROPFIND http://php-ajax.googlecode.com/!svn/vcc/default HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 0 C Content-Length: 111 C C S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:07 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1364 S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C PROPFIND http://php-ajax.googlecode.com/!svn/bc/-1//trunk/phpajax// HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 1 C Content-Length: 332 C C S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:07 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1375 S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C PROPFIND http://php-ajax.googlecode.com/!svn/vcc/default HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 0 C Content-Length: 111 C C S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:07 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1364 S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C PROPFIND http://php-ajax.googlecode.com/!svn/bc/-1//trunk/phpajax// HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 1 C Content-Length: 332 C C S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:08 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1375 S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C PROPFIND http://php-ajax.googlecode.com/!svn/vcc/default HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 0 C Content-Length: 111 C C S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:08 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1364 S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C GET http://php-ajax.googlecode.com/!svn/bc/-1//trunk/phpajax/phpajax.php/ HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 1 C S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:08 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1386 S X-Cache: MISS from eu0575f.lyceu.net S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu0575f.lyceu.net:3060 (squid/2.6.STABLE12), 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C PROPFIND http://php-ajax.googlecode.com/!svn/vcc/default HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 0 C Content-Length: 111 C C S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:09 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1364 S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C GET http://php-ajax.googlecode.com/!svn/bc/-1//trunk/phpajax/phpajax.php/ HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 1 C S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:09 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1386 S X-Cache: MISS from eu1202f.lyceu.net S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu1202f.lyceu.net:3060 (squid/2.6.STABLE12), 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C PROPFIND http://php-ajax.googlecode.com/!svn/vcc/default HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 0 C Content-Length: 111 C C S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:09 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1364 S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C REPORT http://php-ajax.googlecode.com/!svn/bc/-1/// HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 1 C Content-Length: 202 C C -1-1 S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:09 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1361 S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C PROPFIND http://php-ajax.googlecode.com/!svn/vcc/default HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 0 C Content-Length: 111 C C S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:10 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1364 S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com Connecting to php-ajax.googlecode.com Resolving HTTP proxy server domain "eu1936.lyceu.net"... Connecting to HTTP proxy server IP 172.18.244.83 port 3060... Connected to eu1936.lyceu.net C REPORT http://php-ajax.googlecode.com/!svn/bc/-1/// HTTP/1.1 C Host: php-ajax.googlecode.com C User-Agent: phpSVNclient (http://cesars.users.phpclasses.org/svnclient) C Content-Type: text/xml C Depth: 1 C Content-Length: 202 C C -1-1 S HTTP/1.0 404 Not Found S Date: Fri, 27 Jun 2008 13:43:10 GMT S Server: Apache S Content-Type: text/html; charset=UTF-8 S Content-Length: 1361 S X-Cache: MISS from eu1936.lyceu.net S Via: 1.0 eu1936.lyceu.net:3060 (squid/2.6.STABLE12) S Proxy-Connection: close S Disconnected from php-ajax.googlecode.com


--
echo "Response Status :".$http->response_status[0];
is 4 inside request method of phpsvnclient.php class.

Thanks.


  12. Re: problem in example.php class   Reply   Report abuse  
Picture of Suleman Suleman - 2008-06-27 14:46:29 - In reply to message 11 from Suleman
i was doing something wrong earlier, which is fixed now:

Array ( [0] => Array ( [last-mod] => Sat, 08 Dec 2007 01:18:35 GMT [path] => trunk/phpajax/JSON.php [status] => HTTP/1.1 200 OK ) [1] => Array ( [last-mod] => Thu, 29 Nov 2007 06:38:01 GMT [path] => trunk/phpajax/prototype.js [status] => HTTP/1.1 200 OK ) [2] => Array ( [last-mod] => Fri, 18 Jan 2008 07:07:21 GMT [path] => trunk/phpajax/phpajax.php [status] => HTTP/1.1 200 OK ) [3] => Array ( [last-mod] => Fri, 18 Jan 2008 07:07:21 GMT [path] => trunk/phpajax/defines.php [status] => HTTP/1.1 200 OK ) [4] => Array ( [last-mod] => Thu, 29 Nov 2007 06:38:01 GMT [path] => trunk/phpajax/json.js [status] => HTTP/1.1 200 OK ) [5] => Array ( [last-mod] => Fri, 18 Jan 2008 07:07:21 GMT [path] => trunk/phpajax/phpajax.js [status] => HTTP/1.1 200 OK ) )

---
the first array returns 6 element, where as there are 7 files in the directory /trunk/phpajax/

  13. Re: problem in example.php class   Reply   Report abuse  
Picture of Cesar D. Rodas Cesar D. Rodas - 2008-06-27 14:52:21 - In reply to message 12 from Suleman
Yeah, that was a bug already fixed yesterday, please download the last version.

Regards

  14. Re: problem in example.php class   Reply   Report abuse  
Picture of Suleman Suleman - 2008-07-01 11:27:41 - In reply to message 13 from Cesar D. Rodas
Thanks for informing.

Now could you please tell if there is any way with which i can recursively download the entire repository and not just files in one folder e.g. "/trunk/"? I think this is not implemented and i have to do it on my own that is recursive creation of subdirectories and all before writing files in them?
I have to take care of the directory structure myself?

Secondly, each time when i will get this $svn->getDirectoryFiles("/trunk/phpajax/");

and write the files in their respective directories, it would just overwrite the existign files and there is no way to fidn conflicts. Coudl you please shed soem light on this?

thanks.

 
  1 - 10   11 - 14