How ibase_restore working with php?

烈酒焚心 提交于 2019-12-25 02:06:26

问题


I'm trying to restore a Firebird database using ibase_restore, and I get nothing. I found no documentation on the internet. I need help!

This is the code I used, with the gbak command from console I have restored it perfectly.

$servidor = 'localhost';
$usuario = 'sysdba';
$password = '*******';

if (($service = ibase_service_attach($servidor, $usuario, $password)) !== FALSE) {
   $result = ibase_restore($service, '/folder/BACKUP.FBK',
                  $servidor.':/folder/RESTORE.FDB');

   var_dump($result);

   ibase_service_detach($service);
}

来源:https://stackoverflow.com/questions/16467816/how-ibase-restore-working-with-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!