Subject Re: [firebird-php] Re: How make a back up from php?
Author Umberto Masotti
Hi,

Reinhard Neidl ha scritto:
> <?php
> //there are better places to make a backup
> //beware of: php.timeout
> $output = array();
> $returncode = -999;
> $cmd = "/path/to/gbak.exe";
> $cmd .= " -b";
> $cmd .= " -v";
> $cmd .= " -user ...";
> $cmd .= " -password ...";
> $cmd .= " .... ";
> exec($cmd, $out, $returncode);
>
Maybe you mistyped $out with $output:
exec($cmd, $output, $returncode );
> echo ("gbak going home with:".$returncode);
> echo ("gbak output:");
> var_dump($output);
>
> ?>
>

Ciao.
Mimmo.