I use command like
$command = 'mysql -h 192.168.4.567 -uusername -ppassword databasename < table.sql;
exec($command.' 2>&1',$output,$worked);
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 ?
I am doing this in browser and ajax.