> 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');
Can you have a filename with a comma in it?
> exec("mysqldump -u\"$sqlusername\" -p\"$sqlpassword\" \"$sqldatabase\"
>
> $backupdir/$nam.sql");
Take out the \" quotes around username, password, and database.
>
> exec("gzip $backupdir/$nam.sql");
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php