title: Running a 'git pull' from EXEC in PHP
body: <p>I'm trying to run a pull request from git using PHP's <code>exec</code> on windows running <code>XAmpp</code>. When running the script below with <code>exec</code> or <code>system</code> and try to access the file the page just never stops loading. I've check the file permissions of the directory and they're all 0777. &amp; running <code>git status</code> runs fine. Not sure what the problem is.</p>
  
  <pre><code>&lt;?php
  ignore_user_abort(true);
  set_time_limit(15);
  exec('git pull origin master', $o);
  echo implode("\n", $o);
  ?&gt;
  </code></pre>
  
  <p>Update there isn't a password on the account:</p>
  
  <pre><code>C:\xampp\htdocs&gt;git pull origin master
  From github.com:************
   * branch            master     -&gt; FETCH_HEAD
  Already up-to-date.
  
  C:\xampp\htdocs&gt;
  </code></pre>
  
  <p>Running from terminal i get:</p>
  
  <pre><code>C:\xampp\htdocs&gt;php -f update.php
  PHP Warning:  PHP Startup: ming: Unable to initialize module
  Module compiled with build ID=API20090626,TS,VC6
  PHP    compiled with build ID=API20090626,TS,VC9
  These options need to match
   in Unknown on line 0
  
  Warning: PHP Startup: ming: Unable to initialize module
  Module compiled with build ID=API20090626,TS,VC6
  PHP    compiled with build ID=API20090626,TS,VC9
  These options need to match
   in Unknown on line 0
  From github.com:*********
   * branch            master     -&gt; FETCH_HEAD
  Already up-to-date.
  C:\xampp\htdocs&gt;
  </code></pre>