i have to backup my database via php codes but i always ended up with an empty file?
<?php
include "connection.php";
$command = 'mysqldump -u root -p ***** –all-databases > dump.sql';
exec($command) or die(mysql_error());
?>
any help would be great