[PHP] first time using exec() - are getting parse error.

2003-08-17 Thread anders thoresson
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

Re: [PHP] first time using exec() - are getting parse error.

2003-08-17 Thread Chris Hayes
At 12:06 17-8-2003, you wrote: 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

Re: [PHP] first time using exec() - are getting parse error.

2003-08-17 Thread John W. Holmes
anders thoresson wrote: 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,

Re: [PHP] first time using exec() - are getting parse error.

2003-08-17 Thread anders thoresson
What is the error you get? Problem solved: it was a combination of permissions and wrong options. -- anders thoresson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php