2

I am trying to connect with an external database (which is located on the same network of mine) via PHP and Firebird, so I used ibase_connect(), but I'm not able to connect to the external database.

Below there is my PHP connection :

$db = '\\SHARE-NAME\PATH\DATABASE.GDB';
$con = ibase_connect($db , $user , $password) or die(ibase_errmsg());

Error message :

Warning: ibase_connect(): in C:\path\connection.php on line 16

I/O error during "CreateFile (open)" operation for file "C:\SHARE-NAME\PATH\DATABASE.GDB" Error while trying to open file Le chemin d'accès spécifié est introuvable.

Does ibase_connect allow external connection ?

1 Answer 1

2

You need a Firebird server installed on that remote external database and then you can connect with

HOSTNAME:C:/PATH/DATABASE.FDB

Firebird can't access databases on remote windows shares

http://www.firebirdfaq.org/faq46/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.