Subject | Re: [firebird-php] PHP shell script |
---|---|
Author | Milan Babuskov |
Post date | 2004-11-10T21:27:38Z |
Rui Francisco wrote:
installed, one for apache other for command-line (I always have setup
like that on Linux).
that. How exactly do you connect? Which php functions/classes do you
use? Can you post a relevant part of the code?
gds_db 3050/tcp
--
Milan Babuskov
http://fbexport.sourceforge.net
http://www.flamerobin.org
> I'm using firebird in a php script for database access on a windows machineThe same script? Is it possible that you have two versions of php
>
> 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:
installed, one for apache other for command-line (I always have setup
like that on Linux).
> DB Error: connect failedThis is really strange: ibase://user...etc. I never used a syntax like
> [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
that. How exactly do you connect? Which php functions/classes do you
use? Can you post a relevant part of the code?
> I have already added gsb_db 3050/gdb to services fileIt's gds_db, not gsb_db. And it's /tcp, not /gdb. So:
gds_db 3050/tcp
--
Milan Babuskov
http://fbexport.sourceforge.net
http://www.flamerobin.org