|Subject||Re: [firebird-php] Fw: [PHP] Firebird Backup|
At 09:34 PM 7/01/2009, you wrote:
>> Hi,Both, I think.
>> I don't know if it's Firebird or PHP question.
>>Well, it *is* an ISC error. This is a server-level operation. Your $svc_mgr value should resolve to "hostname:service_mgr" (where hostname is the name of your server. the service_mgr part is a constant - don't substitute it!) The service manager code within the Firebird server engine must receive a completely host-local ("serverless") path to the database.
>> I want to use remote administration on one of my pages, at least do a
>> backup for a Firebird database. Because the database file is located on a
>> different intranet machine, I have to use service manager to do backup.
>> So I tried:
>> $svc_mgr = ibase_service_attach(FBSERVER, FBUSER, FBPASS);
>> if ($svc_mgr)
>> $bkp = ibase_backup($svc_mgr, $source_db, $dest_file,
>> IBASE_BKP_NO_GARBAGE_COLLECT, true);
>> The bad thing: if I include "server:" in $source_db string, it gives me an
>> "unkown ISC 0 error".