<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Export the contents of a SVN directory</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.svn-diff.html">svn_diff</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.svn-fs-abort-txn.html">svn_fs_abort_txn</a></div> <div class="up"><a href="ref.svn.html">SVN Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.svn-export" class="refentry"> <div class="refnamediv"> <h1 class="refname">svn_export</h1> <p class="verinfo">(PECL svn >= 0.3.0)</p><p class="refpurpose"><span class="refname">svn_export</span> — <span class="dc-title">Export the contents of a SVN directory</span></p> </div> <div class="refsect1 description" id="refsect1-function.svn-export-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>svn_export</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$frompath</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$topath</code></span> [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$working_copy</code><span class="initializer"> = true</span></span> [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$revision_no</code><span class="initializer"> = -1</span></span> ]] )</div> <p class="para rdfs-comment"> Export the contents of either a working copy or repository into a 'clean' directory. </p> </div> <div class="refsect1 parameters" id="refsect1-function.svn-export-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">frompath</code></em></span> <dd> <p class="para"> The path to the current repository. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">topath</code></em></span> <dd> <p class="para"> The path to the new repository. </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">working_copy</code></em></span> <dd> <p class="para"> If <strong><code>TRUE</code></strong>, it will export uncommitted files from the working copy. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.svn-export-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 examples" id="refsect1-function.svn-export-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-4667"> <p><strong>Example #1 <span class="function"><strong>svn_export()</strong></span> example</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br />$working_dir </span><span style="color: #007700">= </span><span style="color: #DD0000">'../'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$new_working_dir </span><span style="color: #007700">= </span><span style="color: #DD0000">'/home/user/devel/foo/trunk'</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">svn_export</span><span style="color: #007700">(</span><span style="color: #0000BB">$working_dir</span><span style="color: #007700">, </span><span style="color: #0000BB">$new_working_dir</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> </div> </p> </div> <div class="refsect1 seealso" id="refsect1-function.svn-export-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.svn-import.html" class="function" rel="rdfs-seeAlso">svn_import()</a> - Imports an unversioned path into a repository</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.svn-diff.html">svn_diff</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.svn-fs-abort-txn.html">svn_fs_abort_txn</a></div> <div class="up"><a href="ref.svn.html">SVN Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>