Subject Re: [firebird-php] Php shell script
Author Rui Francisco
Thanks everyone

The trick was really the blank line in the Services file

Rui Francisco

Nigel Weeks wrote:

>You are using the the ibase_connect to connect to the database?
>
>$conn = ibase_connect("localhost:c:/path/file1.fdb","user","pass");
>(Be careful about the colons around the drive letter - you've got them wrong
>in your email)
>
>And you've got:
>The entry correct in your c:\windows\system32\drivers\etc\services file?
> gds_db 3050/tcp (You said you had 'gsb_db 3050/gdb' in your file)
>
>one blank line at the bottom of your services file (Windows needs this...)
>
>Nige
>
>
>
>
>>-----Original Message-----
>>From: francisco_rui [mailto:francisco_rui@...]
>>Sent: Thursday, 11 November 2004 4:08 AM
>>To: firebird-php@yahoogroups.com
>>Subject: [firebird-php] Php shell script
>>
>>
>>
>>
>>
>>Hi,
>>
>>I'm using firebird in a php script for database access on a windows
>>machine
>>
>>The problem is the following:
>>I can connect to the database if i use the script in a browser but if
>>i execute it like a shell script i get the following error:
>>
>>DB Error: connect failed
>>[nativecode=Unable to complete network request to host "localhost".
>>Failed to l
>>ocate host machine. Undefined service gds_db/tcp.] **
>>ibase://user:pass@l
>>ocalhost/c:/path/file1.fdb
>>
>>I have already added gsb_db 3050/gdb to services file
>>
>>Does anybody had this problem before ?
>>
>>Thanks in advance
>>Rui Francisco
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>------------------------ Yahoo! Groups Sponsor
>>--------------------~-->
>>Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
>>Now with Pop-Up Blocker. Get it for free!
>>http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/PhFolB/TM
>>--------------------------------------------------------------
>>------~->
>>
>>
>>Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>


--
Rui Francisco - rui.francisco@...
FCCN - Fundação para a Computação Científica Nacional
Av. Brasil, 101 1700-066 Lisboa - Portugal
Tel: +351 218440100 Fax: +351 218472167
-----------------------------------------------------