Subject Re: [firebird-php] Connecting to firebird...
Author Lester Caine
matty400m wrote:

> I'm a novice with Firebird and I have a problem.
>
> I use Php(4.3.3) and Firebird(2.0).

Well that is a very old PHP, much of the newer Firebird facilities are
only available with PHP5.
Also Firebird 2 *I* still have not tested with PHP yet :)

> When I try to connect at the database file with function:
>
> $host = 'localhost:C:/Program
> Files/Firebird/Firebird_2_0/examples/empbuild/Employee.fdb';
> $username = 'SYSDBA';
> $password = 'masterkey';
> $dbh = ibase_connect ( $host, $username, $password ) or die ("error in
> db connect");
>
> Php send this message:
>
> "Warning: ibase_connect(): Unable to complete network request to host
> "localhost". Failed to locate host machine. Undefined service
> gds_db/tcp. in C:\Documents and
> Settings\Administrator\Desktop\prova.php on line 14
> error in db connect"

This would suggest that Firebird 2 has not installed properly. If you
want to play with the latest version, you probably need to check it is
working on it's own first. the SERVICES file obviously does not have an
entry for port 3050

In addition make sure that the gds32.dll that is supplied with PHP is
deleted, and that Firebird2 is installed and has created a new gds32.dll.

> ps: sorry for my english...

Hope you can understand mine ;)

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services