略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: ibase_modify_user

2024-11-14

ibase_modify_user

(PHP 5, PHP 7 < 7.4.0)

ibase_modify_userModify a user to a security database

说明

ibase_modify_user(
    resource $service_handle,
    string $user_name,
    string $password,
    string $first_name = ?,
    string $middle_name = ?,
    string $last_name = ?
): bool

参数

service_handle

The handle on the database server service.

user_name

The login name of the database user to modify.

password

The user's new password.

first_name

The user's new first name.

middle_name

The user's new middle name.

last_name

The user's new last name.

返回值

成功时返回 true, 或者在失败时返回 false

参见

add a noteadd a note

User Contributed Notes 2 notes

up
3
admin at systecdurango dot com
10 years ago
ibase microsip firebird

<?php
$user_name
="ABC";
$password="123";

$ibserv = ibase_service_attach("localhost","SYSDBA","masterkey");
ibase_modify_user($ibserv, $user_name, $password);
ibase_service_detach($ibserv);
?>

this change te password por user ABC to 123

SYSDBA USER AND PASSWORD IS NEED TO THIS LINE

<?php $ibserv = ibase_service_attach("localhost","SYSDBA","masterkey"); ?>
up
3
_ex at navigators dot lv
17 years ago
function changed in php 5! in earlier versions the syntax was:
bool ibase_modify_user ( string server, string dba_user_name, string dba_user_password, string user_name, string password [, string first_name [, string middle_name [, string last_name]]])

now it's necessary to connect to service manager, then call ibase_modify_user() and then disconnect from service manager:
    $ibserv = ibase_service_attach($host, $dba_username, $dba_password);
    ibase_modify_user($ibserv, $user_name, $password);
    ibase_service_dettach($ibserv);

官方地址:https://www.php.net/manual/en/function.ibase-modify-user.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3