svn_checkout()
svn_checkout - Checks out a working copy from the repository
Syntax
bool svn_checkout (
string $repos,
string $targetpath,
int $revision,
int $flags)
Arguments
- repos - String URL path to directory in repository to check out.
- targetpath - String local path to directory to check out in to Note: Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script\'s working directory, use realpath() or dirname(__FILE__).
- revision - Integer revision number of repository to check out. Default is HEAD, the most recent revision.
- flags - Any combination of SVN_NON_RECURSIVE and SVN_IGNORE_EXTERNALS.
Description
Checks out a working copy from the repository at repos to targetpath at revision revision.
Version
PHP PECL svn >= 0.1.0
Return value
Returns TRUE on success or FALSE on failure.