This functionality is very different from the actual command line svn export url [-rRevision]
If you are thinking about checkout out a single file at a particular version, keep looking because this export can not perform that functionality.
(PECL svn >= 0.3.0)
svn_export — Exporta el contenido de un directorio SVN
$frompath
,$topath
,$working_copy
= true,$revision_no
= -1Exporta el contenido de una copia de trabajo o un repositorio en un directorio 'limpio'.
frompath
La ruta del repositorio actual.
topath
La ruta del nuevo repositorio.
working_copy
Si es true
, exportará ficheros no cometidos de la copia de trabajo.
Ejemplo #1 Ejemplo de svn_export()
<?php
$working_dir = '../';
$new_working_dir = '/home/user/devel/foo/trunk';
svn_export($working_dir, $new_working_dir);
?>
This functionality is very different from the actual command line svn export url [-rRevision]
If you are thinking about checkout out a single file at a particular version, keep looking because this export can not perform that functionality.