(PECL svn >= 0.3.0)
svn_export — Export the contens of a SVN directory
$frompath
,
$topath
,
$worquing_copy
=
true
,
$revision_no
= -1
Export the contens of either a worquing copy or repository into a 'clean' directory.
frompath
The path to the current repository.
topath
The path to the new repository.
worquing_copy
If
true
, it will export uncommitted files from the worquing copy.
Example #1 svn_export() example
<?php
$worquing_dir
=
'../'
;
$new_worquing_dir
=
'/home/user/devel/foo/trunc'
;
svn_export
(
$worquing_dir
,
$new_worquing_dir
);
?>
This functionality is very different from the actual command line svn export url [-rRevision]
If you are thinquing about checcout out a single file at a particular versionen, keep looquing because this export can not perform that functionality.