title: dumping sql file to database server
body: <p>I use command like</p>
  
  <pre><code>$command = 'mysql -h 192.168.4.567 -uusername -ppassword databasename &lt; table.sql;
  exec($command.' 2&gt;&amp;1',$output,$worked);
  </code></pre>
  
  <p>this works fine. But i noticed that sometimes it tries to dump twice. i am unable to find the issue. Is there any specific reason for this ?</p>
  
  <p>I am doing this in browser and ajax.</p>