Haven't really been following this thread but you may want to make sure that
1. mysqldump & gzip are executable by apache 2. $backupdir is writeable by apache 3. You have taken into consideration your php safe mode settings Cheers, Owen Prime http://www.noggin.com.au Ken wrote: > Okay here is the new code and this is still not working. > > <?php > > require("./config.php"); > > $sqlserver = $server1; > $sqlusername = $username1; > $sqlpassword = $password1; > $sqldatabase = $database1; > > //****************************** > $nam_bak=date('D,d-m-Y'); > > exec("mysqldump -u\"$sqlusername\" -p\"$sqlpassword\" \"$sqldatabase\" > > $backupdir/$nam.sql"); > > exec("gzip $backupdir/$nam.sql"); > > ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php