Here is how I do it:
svn_checkout('svn+ssh://server.com/svn_path', 'folder/');
But it seems the function does not recognize the svn+ssh protocol, as it gives me internal server error. With HTTP it works fine. Is there a way to checkout?
Here is how I do it:
svn_checkout('svn+ssh://server.com/svn_path', 'folder/');
But it seems the function does not recognize the svn+ssh protocol, as it gives me internal server error. With HTTP it works fine. Is there a way to checkout?
This example demonstrates how to check out a directory from a repository to a directory named calc:
svn_checkout('http://www.example.com/svnroot/calc/trunk', dirname(__FILE__) . '/calc');
Reference link
OR
Try this
// svn checkout command
$checkout = "svn --username SVN-USERNAME --password SVN-PASSWORD checkout http://SVN-REPOSITORY-LOCATION DESTINATION-FOLDER";
// run php exec command
exec($checkout);
Reference link
$checkout = "svn co svn+ssh://server.com/svn_path folder --non-interactive --trust-server-cert --username <username> --password <password> --no-auth-cache";exec($checkout);