Still doesn't work. Also no error for echo exec($createBackup);.
I changed the path to /usr/bin/mysqldump -u root -h localhost toy > /var/www/toy/toy-11-09-2009_10:03:41.sql but, still doesn't work in the script.
As i said before, it works fine in Ubuntu terminal. I also, tar it in the terminal without any problem with same path.
Thanks
Does PHP have write privileges to: /var/www/toy/
Does your root account on mysql have no password? Just wondering...
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
Offline 1,250 posts
since Sep 2005