title: how to run a batch file in php under xampp on windows
body: <p>I'm trying to write a little php to update an svn repo on a server running xampplite under windows. (This is a development server, not a production one.)</p>
  
  <p>Here's my php:</p>
  
  <pre><code>&lt;?php
  passthru("update.bat"); 
  // I also tried exec() &amp; putting the svn command in directly
  ?&gt;
  </code></pre>
  
  <p>update.bat is sitting in the same folder as the php script</p>
  
  <p>Here's the content of update.bat:</p>
  
  <pre><code>svn up c:\path\to\my\repo
  </code></pre>
  
  <p>When I run the batch file by itself, it works. When I run it via php, I get this printed to the browser:</p>
  
  <pre><code>C:\path\to\script\folder&gt;svn up c:\path\to\my\repo
  </code></pre>
  
  <p>which looks good, but the project isn't updated. </p>