first time using exec() - are getting parse error.
| From: | anders thoresson | Date: | Sun, 17 Aug 2003 10:06:32 +0000 |
| Subject: | first time using exec() - are getting parse error. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-159831@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to call mysqldump from within a php-script, like this:
$backuptime = date("ymdHi");
$backupfile = "un" . $backuptime . ".txt";
exec("mysqldump --opt -u$dbuser -p$dbpassword $dbdatabase $alltables > /web/un/backup/$backupfile");
It works fine on my local Win2k, php 4.3.1, but not on my ISP:s Sun Solaris/php 4.3.2 machine I get a parse error. What am I doing wrong?
Is there a better way to backup my database?
--
anders thoresson