note 47455 added to function.mysql-query
| From: | [dumm] | Date: | Wed, 17 Nov 2004 04:30:39 +0000 |
| Subject: | note 47455 added to function.mysql-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80621@lists.php.net to get a copy of this message | ||
Yeah, need to take a dump via php myself, too.
It's all very ugly but what about a system call...
<?
system("mysqldump --add-drop-table -u <user> -p<pass> DB > dump.sql");
?>
...this wrote the dump into the folder where the php script resides. ;)
if it works at my boss's provider i'm happy.
Cheerz -TX8
----
Manual Page -- http://www.php.net/manual/en/function.mysql-query.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47455
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47455&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47455&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47455&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47455&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47455&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47455&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47455&report=yes
Search -- http://master.php.net/manage/user-notes.php