title: Run windows command in php
body: <p>Is it possible to run windows command line code from php ?
  My windows command line code is:</p>
  
  <pre><code>&lt;?php 
  error_reporting(E_ALL); 
  try {
  
  echo exec('C:\xampp\mysql\bin&gt;mysqlbinlog --start-datetime="2011-04-21 10:31:44" c:\xampp\mysql\data\binlog\bin-log.000001 &gt; c:\xampp\mysql\data\binlog\sql.txt');
  
  } catch (Exception $e) {
  echo $e-&gt;getMessage();
  }
  </code></pre>
  
  <p>Now I want to run this code from PHP using <code>system()</code> or <code>exec()</code> etc.
  any help appreciated.</p>