Well... First off here is my backup database script:
$backupFile = "atomikucms" . date("Y-m-d-H-i-s") . '.abf';
$command = "mysqldump -h localhost -u root -p****** atomikucms > $backupFile";
system($command);
When I run that it just creates an empty file... So I thought there must be an error?
I opened CMS and went to them mysql/bin folder then typed
mysqldump -h localhost -u root -p****** atomikucms > BLAH
It worked! Created the file in the mysql/bin file.
So... What do you think I am doing wrong?
Oh, btw, this is what it says in the error.log file:
'mysqldump' is not recognized as an internal or external command,
operable program or batch file.
Ahh so that means in the system thing I need to first CD to the mysql/bin folder. Okay. but... Im currently testing this on windows, but the server which I will be putting this script on is liunx. So I need some script that will find out where the mysqldump is located? Please can someone help me do this. Thanks in advance. Atomiku.