|
phpsvnclient
new phpsvnclient($url='http://phpsvnclient.googlecode.com/svn/',$user=false, $pass=false)
Phase-Deploy, Language-EN phpsvnclientOnce the phpsvnclient class has been installed, it needs to be included within your scripts (require or require_once is preferred due to the way it produces a fatal error if the path is incorrect or the file is not found.). // Absolute or relative path to phpsvnclient.php
require ('phpsvnclient/phpsvnclient.php);To create an instance of the phpsvnclient class, a new object must be created with parameters and assigned to a variable.
// Assign the phpsvnclient object to $phpsvnclient $phpsvnclient = new phpsvnclient($url,$user,$password); Example$url = 'http://phpsvnclient.googlecode.com/svn/';
require_once('phpsvnclient/phpsvnclient.php');
$phpsvnclient = new phpsvnclient($url);
// Lets get an array of the contents within /trunk/
$files_now = $phpsvnclient->getDirectoryFiles('/trunk/');
echo "<pre>\n";
print_r($files_now);
echo "</pre>\n";
|
► Sign in to add a comment
there is a small typoe on here require ('phpsvnclient/phpsvnclient.php); should be require ('phpsvnclient/phpsvnclient.php');