Subject | Re: [firebird-php] How make a back up from php? |
---|---|
Author | Lester Caine |
Post date | 2009-06-24T06:23:26Z |
Oscar Darío Perdiguero wrote:
Backup is normally run automatically in the background.
It would be useful to know which line is '23' but a number of things
spring to mind.
On windows it's preferred to use .FDB as the file extension because M$
identifies .GDB as one of the file types it likes to automatically back
up - which can be switched off, but may actually be worth leaving alone
since it does help with other windows problems. Not going to affect your
problem here though.
I presume that the 'destination' in ibase_backup is a missprint? You
need the destination to be a different file such as .FBK extension ...
Which versions of PHP, Firebird ( and CS or SS ) and since you would
seem to be using Delphi for PHP - what is actually creating the message?
I've only had a short play with that, but I seem to remember it does
code checking so the 'warning' may be about '$charset = "NONE";' not
actually being used in the code ... It IS only a warning, so have you
run the code?
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
> Hi. My name is Darío and I'm needing some help to put to work theI have to admit to not using the ibase_service interface from PHP.
> following code
>
> Please help me and forgive me my english.
>
> function BackUp()
> {
> $host = "whitegandalf";
> $username = "SYSDBA";
> $password = "masterkey";
> $charset = "NONE";
> $base = "C:\SysAdmin\Sistemas\Repositorio SA\Herramientas
> SA\InfoTester\Datos\DBClientServer\DBINFOTESTER.GDB";
>
> $resource_service_handle = ibase_service_attach ($host,
> $username, $password);
> if ($resource_service_handle)
> {
> ibase_backup($resource_service_handle, $base,
> 'C:\SysAdmin\Sistemas\Repositorio SA\Herramientas
> SA\InfoTester\Datos\DBClientServer\Respaldo\DBINFOTESTER.GDB');
> ibase_service_detach ($resource_service_handle);
> }
> }
>
> but I'm having this error.
>
> Warning: ibase_backup() [function.ibase-backup]: unassigned code in
> C:\Documents and Settings\SysAdmin\Mis documentos\Delphi for PHP
> Projects\firebirdbackup.php on line 23
Backup is normally run automatically in the background.
It would be useful to know which line is '23' but a number of things
spring to mind.
On windows it's preferred to use .FDB as the file extension because M$
identifies .GDB as one of the file types it likes to automatically back
up - which can be switched off, but may actually be worth leaving alone
since it does help with other windows problems. Not going to affect your
problem here though.
I presume that the 'destination' in ibase_backup is a missprint? You
need the destination to be a different file such as .FBK extension ...
Which versions of PHP, Firebird ( and CS or SS ) and since you would
seem to be using Delphi for PHP - what is actually creating the message?
I've only had a short play with that, but I seem to remember it does
code checking so the 'warning' may be about '$charset = "NONE";' not
actually being used in the code ... It IS only a warning, so have you
run the code?
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php