Subject | Re: [firebird-php] How make a back up from php? |
---|---|
Author | Oscar Darío Perdiguero |
Post date | 2009-07-20T22:37:13Z |
Lester Caine escribió:
Thanks you by your answer and sorry by delay in my reply. I was trying
to write in english.
Reading your reply I have three things to say
1) How can I enable the automatic backups in a firebird server?
2) there isn't a missprinting in the name of the back up. If you see at
that line, you'll see that the path for the source is diferent than the
one for the back up.
3) Yes I'm using D4PHP but I'm coding, not using the VCL components and
4) Line 23 is the line where I try to execute a backup
5) Can I write in spanish in this forum? and to you?
6) I'm using PHP 5.2.3 and FB 1.5
Any other idea?
thank you and sorry by my english again.
Oscar Darío Perdiguero
>Hi Lester.
> Oscar Darío Perdiguero wrote:
> > Hi. My name is Darío and I'm needing some help to put to work the
> > 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
>
> I have to admit to not using the ibase_service interface from PHP.
> 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
>
Thanks you by your answer and sorry by delay in my reply. I was trying
to write in english.
Reading your reply I have three things to say
1) How can I enable the automatic backups in a firebird server?
2) there isn't a missprinting in the name of the back up. If you see at
that line, you'll see that the path for the source is diferent than the
one for the back up.
3) Yes I'm using D4PHP but I'm coding, not using the VCL components and
4) Line 23 is the line where I try to execute a backup
5) Can I write in spanish in this forum? and to you?
6) I'm using PHP 5.2.3 and FB 1.5
Any other idea?
thank you and sorry by my english again.
Oscar Darío Perdiguero