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 dirname(__FILE__)
call is necessary in order
to convert the calc relative path into an absolute one. If calc
exists, you can also use realpath() to retrieve
an absolute path.