ibase_connect to local host fails, why ???

This forum is focused on all typical tasks for PHP developer.

ibase_connect to local host fails, why ???

Postby fenny » Wed Nov 12, 2008 6:10 pm

Hi out there... please help !!!

Code: Select all
$dbfile = 'c:\databases\test.ib';
ibase_connect($dbfile, $dbusername, $dbpassword, 'ISO8859_1');

creates this error: unavailable database btw: I promisse the database file is there!!!

Code: Select all
$dbfile = 'localhost:c:\databases\test.ib';
ibase_connect($dbfile, $dbusername, $dbpassword, 'ISO8859_1');


creates this error: Unable to complete network request to host "localhost". Failed to establish a connection. No connection could be made because the target machine actively refused it. and again: I promisse that there is a localhost.

What do I do wrong?

Best regards,

Fenny.

I am running:
ApacheFriends XAMPP (Basispaket) version 1.6.8
+ Apache 2.2.9
+ PHP 5.2.6 + PHP 4.4.9 + PEAR
fenny
 
Posts: 1
Joined: Wed Nov 12, 2008 5:57 pm

Re: ibase_connect to local host fails, why ???

Postby mariuz » Tue Nov 18, 2008 1:16 pm

could you try with telnet if the port is open ?

Code: Select all
telnet localhost 3050
Trying 127.0.0.1...
Connected to borkstation.
Escape character is '^]'.


1.did you tried with 127.0.0.1 ?

2.also there is any antinvirus there ?

3.also check the comments from the manual ...
http://usphp.com/manual/en/function.ibase-connect.php

4.maybe you should check with netstat if the firebird is listening on the 3050 port
http://en.wikipedia.org/wiki/Netstat
mariuz
 
Posts: 5
Joined: Fri May 30, 2008 10:57 am


Return to Firebird for PHP Developer

Who is online

Users browsing this forum: No registered users and 1 guest

cron