php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42605 Connect with Firebird
Submitted: 2007-09-09 18:10 UTC Modified: 2007-09-09 18:18 UTC
From: andersonsandri at hotmail dot com Assigned:
Status: Closed Package: InterBase related
PHP Version: 4.4.7 OS: Win 2003
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
48 + 13 = ?
Subscribe to this entry?

 
 [2007-09-09 18:10 UTC] 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).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-09 18:18 UTC] andersonsandri at hotmail dot com
I found the Problem: THE WINDOWS FIREWALL ON MICRO004
Now is perfect :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 19:01:29 2024 UTC