note 56961 added to function.ibase-connect

From: Date: Tue, 20 Sep 2005 12:07:39 +0000
Subject: note 56961 added to function.ibase-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-95471@lists.php.net to get a copy of this message
With php5 on Windows i couldnt connect to a firebird database with following error : Warning: ibase_connect(): Unable to complete network request to host "localhost" . Failed to locate host machine. Undefined service gds_db/tcp. in C:\\wamp\\php\\ibase.php on line 5 the connect command was "$dbh = ibase_connect ("localhost:path_to_file.fdb", $username, $password);" The solution is to insert the line gds_db 3050/tcp #firebird Database into the windows services file %WINDIR%\\system32\\drivers\\etc\\services ---- Manual Page -- http://www.php.net/manual/en/function.ibase-connect.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56961 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56961&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56961&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56961&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56961&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56961&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+56961&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56961&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56961&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95471) next »