Validating SVN via PHP

Here is how I do it:

svn_checkout('svn+ssh://server.com/svn_path', 'folder/'); 

But it doesn't seem like the function recognizes the svn + ssh protocol, as it gives me an internal server error. It works fine with HTTP. Is there a way to check?

+4
source share
1 answer

This example shows how to check a directory from a repository in a directory called calc:

 svn_checkout('http://www.example.com/svnroot/calc/trunk', dirname(__FILE__) . '/calc'); 

Link link

OR

try it

 // svn checkout command $checkout = "svn --username SVN-USERNAME --password SVN-PASSWORD checkout http://SVN-REPOSITORY-LOCATION DESTINATION-FOLDER"; // run php exec command exec($checkout); 

Link link

+1
source

All Articles