fbsql_db_status

(PHP 4 >= 4.0.7, PHP 5 < 5.3.0)

fbsql_db_statusGet the status for a given database

Descrierea

fbsql_db_status ( string $database_name [, resource $link_identifier ] ) : int

Gets the current status of the specified database.

Parametri

database_name

The database name.

link_identifier

Un identificator de legătură FrontBase întors de fbsql_connect() sau fbsql_pconnect ().

Dacă nu este specificat, funcția va încerca să găsească o legătură deschisă către serverul FrontBase și dacă nu este găsită nici o astfel de legătură, se va încerca crearea uneia, ca și la apelarea fbsql_connect() fără argumente.

Valorile întoarse

Returns an integer value with the current status. This can be one of the following constants:

  • false - The exec handler for the host was invalid. This error will occur when the link_identifier connects directly to a database by using a port number. FBExec can be available on the server but no connection has been made for it.
  • FBSQL_UNKNOWN - The Status is unknown.
  • FBSQL_STOPPED - The database is not running. Use fbsql_start_db() to start the database.
  • FBSQL_STARTING - The database is starting.
  • FBSQL_RUNNING - The database is running and can be used to perform SQL operations.
  • FBSQL_STOPPING - The database is stopping.
  • FBSQL_NOEXEC - FBExec is not running on the server and it is not possible to get the status of the database.

A se vedea și

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top