trafficg
05-14-2001, 05:49 PM
Hi
I have been using Telnet now for a while to backup my database and decided I would write something in PHP to allow me to create/restore database backups more easily.
The PHP script uses the system function and calls the same commands I use with Telnet. I tested the script on my local machine and everything works like a dream, but the script will not work when I upload it.
Sample of code:
$command = "mysqldump $myoptions --u=$username --p=$password -h$host $db_name $table_name > $backup_dir$filename";
system ($command,$myret);
I have tried altering the paths to the various files needed etc. but it always fails, I suspect I am dealing with yet[nbsp][nbsp]another SAFE MODE issue.
Any help would be most welcome.
Pete Kelly
I have been using Telnet now for a while to backup my database and decided I would write something in PHP to allow me to create/restore database backups more easily.
The PHP script uses the system function and calls the same commands I use with Telnet. I tested the script on my local machine and everything works like a dream, but the script will not work when I upload it.
Sample of code:
$command = "mysqldump $myoptions --u=$username --p=$password -h$host $db_name $table_name > $backup_dir$filename";
system ($command,$myret);
I have tried altering the paths to the various files needed etc. but it always fails, I suspect I am dealing with yet[nbsp][nbsp]another SAFE MODE issue.
Any help would be most welcome.
Pete Kelly