PHP.nl

svn_add

svn_add

Schedules the addition of an item in a working directory

bool **svn_add** string $path bool $recursive bool $force

Adds the file, directory or symbolic link at to the working directory. The item will be added to the repository the next time you call on the working copy. path``svn_commit

pathPath of item to add.

recursiveIf item is directory, whether or not to recursively add all of its contents. Default is true

forceIf true, Subversion will recurse into already versioned directories in order to add unversioned files that may be hiding in those directories. Default is false

return.success

Voorbeeld: example

In a working directory where returns:

$ svn status
?      foobar.txt

...this code:

<?php
svn_add('foobar.txt');
?>

...will schedule for addition into the repository.

SVN documentation on svn add