Subject Re: service_mgr is not defined - calling from PHP
Author grip_2ls
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
*****************************

// 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]
>