I am trying to use exec()
in php but looks like all my efforts are in vain !!!
Please help me : What is wrong with my code?
$cmd = "mysqldump -u root my_db table1 table2 > /home/aditi/Desktop/databasedump.sql";
$res = exec($cmd , $ot , $res);
But I don't see this file. But when I do this on console there is no problem.
Any help will be appreciated.