I used this code until last week to make a dump of my database.
$create_backup = exec("/usr/bin/mysqldump --opt --host=sql.example.com --user=user --password=password dbname > /home/mhd-17/www.example.com/htdocs/temp/backup.sql");
But the exec() function has been disactivated on my server. I tried to put system() and passthru() instead of exec(), but the result is a backup file of 0 KB.
Do you know how I could solve this without using thing like phpMyAdmin?