Re: mysqldump

From: Date: Wed, 10 Nov 2004 03:37:51 +0000
Subject: Re: mysqldump
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-37215@lists.php.net to get a copy of this message
On Tuesday 09 November 2004 19:12, Aaron Todd wrote: Please do not top post (google > top post). > I tried the double quotes but that didn't seem to matter. It does matter. > I also put the > command string in a variable and then am running the variable with exec. > Still it doesnt work. Splitting it up into 2 steps is to aid in debugging. > $filename = "/home/virtual/site341/fst/var/www/html/db_backup_" . > date("n-j-y").".sql"; > $command = "/home/virtual/site341/fst/usr/bin/mysqldump -u ***** -p***** > database > $filename"; > echo $command; If what is being echoed looks OK then > exec($command); make use of the extra arguments to exec() (see manual) so that you can see what's being output. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* If you can survive death, you can probably survive anything. */

« previous php.db (#37215) next »