note 89683 deleted from function.shell-exec by danbrown
| From: | danbrown@php.net | Date: | Thu, 19 Mar 2009 13:09:34 +0000 |
| Subject: | note 89683 deleted from function.shell-exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152136@lists.php.net to get a copy of this message | ||
Note Submitter: jon at jbxonline dot net
----
When using mysqldump with exec(), it's important to note that you MUST use the long form of
switches - eg.
<?php exec('mysqldump -u user dbname > output.sql'); ?>
will not work, but
<?php exec('mysqldump --user=user dbname > output.sql'); ?>
will work.