#42605 [Opn->Csd]: Connect with Firebird

From: Date: Sun, 09 Sep 2007 18:18:47 +0000
Subject: #42605 [Opn->Csd]: Connect with Firebird
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-117337@lists.php.net to get a copy of this message
ID: 42605 User updated by: andersonsandri at hotmail dot com Reported By: andersonsandri at hotmail dot com -Status: Open +Status: Closed Bug Type: InterBase related Operating System: Win 2003 PHP Version: 4.4.7 New Comment: I found the Problem: THE WINDOWS FIREWALL ON MICRO004 Now is perfect :) Previous Comments: ------------------------------------------------------------------------ [2007-09-09 18:10:13] andersonsandri at hotmail dot com Description: ------------ I have 5 computer in my Store, one is a server. I'am trying connect to the data base that is in another computer in my LAN. The php script is in my Server (192.168.0.1) and the database is in MICRO004 (192.168.0.14) in the Directory "C:\apoio\", if I connect with the $host = Localhost, connect with sucess, but is not the correct database that I want to use. I want to use the database that is on Micro004. When I try to connect with the $host = 'micro004:C:\apoio\XXX.GDB'; show this error: Warning: ibase_connect(): Unable to complete network request to host "micro004". Failed to establish a connection. unknown Win32 error 10060 in c:\inetpub\wwwroot\apoio\classes.php on line 7 Fatal error: Maximum execution time of 30 seconds exceeded in c:\inetpub\wwwroot\apoio\classes.php on line 7 Reproduce code: --------------- <?php $host = 'micro004:C:\apoio\XXX.GDB'; //$host = 'localhost:C:\apoio\XXXX.GDB'; $username='SYSDBA'; $password='masterkey'; $db = ibase_connect($host, $username, $password) or die ("Erro ao Conectar o Banco."); ?> Expected result: ---------------- I woul like to connect the database that is on Micro004 in the directory C:\apoio\XXX.GDB (or computer 192.168.0.14) and not only the server (192.168.0.1). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42605&edit=1

« previous php.bugs (#117337) next »