Hello,
I try to do a mysql backup using mysqldump. I've written a php script that
uses system() to execute mysqldump. I have two unix servers and the script
runs fine on the frist one but fails without any error on the second server. I
have following script to test it:
----------------------------------
<?php
print system ('/usr/bin/mysqldump --opt -u user -ppassword database 2>
/home/user/public_html/backup/error.txt | gzip >
/home/user/public_html/backup/bck120404.sql.gz');
?>
----------------------------------
This script doesn't return anything. No error.txt and no bck120404.sql.gz are
written. It's a unix server and register_globals is off. All directories
should be fine and "print system ('ls');" runs ok. I also tried exec(),
passthru() and shell_exec().
Any idea what I'm overlooking?
Thanks,
Adrian
--
Sou desu-ka? O_o -_- x_x _
http://www.animelayer.net/ (Reviewdatenbank)