PHP Doku:: Sets or retrieves the password for a FrontBase database - function.fbsql-database-password.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenFrontBaseFrontBase Funktionenfbsql_database_password

Ein Service von Reinhard Neidl - Webprogrammierung.

FrontBase Funktionen

<<fbsql_data_seek

fbsql_database>>

fbsql_database_password

(PHP 4 >= 4.0.6, PHP 5)

fbsql_database_passwordSets or retrieves the password for a FrontBase database

Beschreibung

string fbsql_database_password ( resource $link_identifier [, string $database_password ] )

Sets and retrieves the database password used by the connection. If a database is protected by a database password, the user must call this function before calling fbsql_select_db().

If no link is open, the function will try to establish a link as if fbsql_connect() was called, and use it.

This function does not change the database password in the database nor can it be used to retrieve the database password for a database.

Parameter-Liste

link_identifier

Eine von fbsql_connect() oder fbsql_pconnect() zurückgegebe FrontBase-Verbindung.

Wenn optional und nicht angegeben, wird versucht, eine bereits geöffnete FrontBase-Verbindung zu finden, falls keine vorhanden ist, wird versucht, eine zu öffnen, als ob fbsql_connect() ohne Parameter aufgerufen wurde.

database_password

The database password, as a string. If given, the function sets the database password for the specified link identifier.

Rückgabewerte

Returns the database password associated with the link identifier.

Beispiele

Beispiel #1 fbsql_create_clob() example

<?php
$link 
fbsql_pconnect("localhost""_SYSTEM""secret")
    or die(
"Could not connect");
fbsql_database_password($link"secret db password");
fbsql_select_db($database$link);
?>

Siehe auch


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)