title: mysqldump php command easyphp
body: <p>when i run the following command from the cmd box, it works fine; creates the file with my database data inside it:</p>
  
  <pre><code>"\Program Files\EasyPHP-5.3.8.1\mysql\bin\mysqldump" -u root -p databasename &gt; D:\path\dumpedfile.sql
  </code></pre>
  
  <p>but then when i run this one from a php script, it makes the file, but its empty:</p>
  
  <pre><code>shell_exec('"\Program Files\EasyPHP-5.3.8.1\mysql\bin\mysqldump" -u root -p databasename &gt; D:\path\dumpedfile.sql');
  </code></pre>
  
  <p>(note: i have no password setup)</p>
  
  <p>what am i doing wrong?</p>
  
  <p>please help
  thanks</p>