Thomas That is the error message you are referring to, the call is:
------------------------------- if (($service = ibase_service_attach($host, $username, $password)) == FALSE) { ------------------------------- the host is defined as: ------------------------------- $host = '192.168.10.109:/var/lib/firebird/2.5/data/grip.fdb'; ------------------------------- So I think that it is correct. Also if I query the database this works fine - only attaching to the service db is a problem. Neil --- In firebird-support@yahoogroups.com, Thomas Steinmaurer <ts@...> wrote: > > > Seems that the rich text editor doesn't work and has stripped out all the > > formatting so here is the error message and code again: > > > > ***************************** > > Service DB - Could not connect: Cannot attach to services manager service > > var/lib/firebird/2.5/data/grip.fdb:service_mgr is not defined > > ***************************** > > I've no idea about the PHP usage, but the string above looks a bit > weird. The first part shouldn't be the path to database, but the > server/port information. E.g. the following is valid: > > localhost:service_mgr > > or > > localhost/3051:service_mgr > > Perhaps you are mixing something related to a database connection path > vs. server name when using the ibase_service_attach call? > > -- > With regards, > Thomas Steinmaurer > http://www.upscene.com/ > > > > > > // connect to the service database > > if (($service = ibase_service_attach($host, $username, $password)) == > > FALSE) { > > $smarty->assign('msg', 'Service DB - Could not connect: ' . > > ibase_errmsg()); > > $smarty->display('feedback.tpl'); > > break; > > } > > > > Thanks > > > > Neil > > > > --- In firebird-support@yahoogroups.com, "grip_2ls" <lists@> wrote: > >> > >> Hi > >> I am trying to write a PHP script to create a new Firebird user but when > >> I run the code I get the following: > >> Service DB - Could not connect: Cannot attach to services manager > >> service var/lib/firebird/2.5/data/grip.fdb:service_mgr is not defined > >> I am running Firebird 2.5 on Ubuntu. > >> This is the PHP code: > >> // connect to the service database if (($service = > >> ibase_service_attach($host, $username, $password)) == FALSE) { > >> $smarty->assign('msg', 'Service DB - Could not connect: ' . > >> ibase_errmsg()); $smarty->display('feedback.tpl'); break; } > >> Can I do this on Firebird and if so how? > >> Thanks > >> Neil > >> > >> > >> > >> [Non-text portions of this message have been removed] > >> > > > > > > > > ------------------------------------ > > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > Visit http://www.firebirdsql.org and click the Resources item > > on the main (top) menu. Try Knowledgebase and FAQ links ! > > > > Also search the knowledgebases at http://www.ibphoenix.com > > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Yahoo! Groups Links > > > > > > >