|
Posted by anonymous on 08/13/07 21:40
Hi,
> <?php
>
> $username = 'YOURUSERNAME';
> $password = 'YOURPASSWORD';
> $database = 'DATABASENAME';
> $filename = 'FILENAME';
>
> system("mysqldump --compact --compress -u{$username} -p{$password}
>
> > {$database} | gzip --best > {$filename}");
>
> ?>
I ran this,
<?php
$username = 'logg1';
$password = 'something';
$database = 'dbplace';
$filename = 'testing.zip';
system("mysqldump --compact --compress -u{$username} -p{$password} >
{$database} | gzip --best > {$filename}");
?>
It placed a 'testing.zip' in the root folder, however it was only 20
bytes and nothing was in it. I know I have the other settings right
as I use it successfully elsewhere. There were no displayed errors
after running it, ... is there anything I can do to de-bug? :) :)
Thank you again so much!
Navigation:
[Reply to this message]
|