mysqldump problem from PHP
| From: | Angelo Zanetti | Date: | Mon, 23 Oct 2006 14:07:45 +0000 |
| Subject: | mysqldump problem from PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-243472@lists.php.net to get a copy of this message | ||
hi all,
Im doing the following dump through PHP:
$output = shell_exec('mysqldump '. $db_database .' > '. $backup_path.$filename);
It doesnt seem to work but when I run the exact same command (with appropriate values) in the command line it creates the dump file. What could be the reason for this?
Thanks in advance.
regards
------------------------------------------------------------------------
Angelo Zanetti
Systems developer
------------------------------------------------------------------------
*Telephone:* +27 (021) 469 1052
*Mobile:* +27 (0) 72 441 3355 *Fax:* +27 (0) 86 681 5885* Web:* http://www.zlogic.co.za *E-Mail:* angelo@zlogic.co.za <mailto:angelo@zlogic.co.za>