PHP.nl

svn_checkout

svn_checkout

Checks out a working copy from the repository

bool **svn_checkout** string $repos string $targetpath int $revision int $flags

Checks out a working copy from the repository at to at revision . repos``targetpath``revision

reposString URL path to directory in repository to check out.

targetpathString local path to directory to check out in to

revisionInteger revision number of repository to check out. Default is HEAD, the most recent revision.

flags Any combination of and . SVN_NON_RECURSIVE``SVN_IGNORE_EXTERNALS

return.success

Voorbeeld: Basic example

This example demonstrates how to check out a directory from a repository to a directory named calc:

<?php
svn_checkout('http://www.example.com/svnroot/calc/trunk', dirname(__FILE__) . '/calc');
?>
The  call is necessary in order
to convert the calc relative path into an absolute one. If calc
exists, you can also use  to retrieve
an absolute path.

dirname(__FILE__)``realpath

svn_add``svn_commit``svn_status``svn_updateSVN documentation on svn checkout