I am trying to copy a backup of the database on the server, here is the code:
Code: Select all
$ste_backup = $db . date("Y-m-d-H-i-s") . '.sql';
$ste_backup2 = "mysqldump --opt -h $dbhost -u $dbuser -p $dbpass $db > $ste_backup";
system($ste_backup2);So, what happens is that it all looks perfect on the server, but no data in the file. I have set chmod to 777 too.
Any idea why the file would be empty or what I could do to fix it?
Thanks in advance!