PHP: ibase_add_user - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ibase_affected_rows Firebird/InterBase

Last updated: Fri, 26 Jan 2007

view this page in

# ibase_add_user

(PHP 4 >= 4.2.0, PHP 5)

ibase_add_user -- Add a user to a security database (only for IB6 or later)

## Description

bool ibase_add_user ( resource service_handle, string user_name, string password [, string first_name [, string middle_name [, string last_name]]] )

PHP 4 uses `server`, `dba_user_name` and `dba_user_password` instead of `service_handle` parameter.

Внимание
К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.

See also ibase_modify_user() and ibase_delete_user().

add a note User Contributed Notes
ibase_add_user
pabloj
12-Apr-2006 02:10
`You can create users on Firebird/Interbase this way:
<?php
// attach to the server with proper privileges
if (($service = ibase_service_attach('localhost', 'sysdba', 'masterkey')) != FALSE) {
// get server version and implementation strings
$server_info = ibase_server_info($service, IBASE_SVC_SERVER_VERSION)
. ' / '
. ibase_server_info($service, IBASE_SVC_IMPLEMENTATION);
//ibase_service_detach($service);
}
else {
$ib_error = ibase_errmsg();
}
echo $server_info;
//add a new user with name 'pippo' and password 'pp'
if (($result = ibase_add_user($service, 'pippo', 'pp')) != FALSE) {
echo 'User created';
ibase_service_detach($service);
}
else {
$ib_error = ibase_errmsg();
//detach from server
ibase_service_detach($service);
}
?>`
add a note
ibase_affected_rows Firebird/InterBase

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 11:33:19 2007 PST