(PHP 4 >= 4.0.7, PHP 5, PHP 7)
fbsql_db_status — Get the status for a given database
$database_name
[, resource $link_identifier
] )Gets the current status of the specified database.
database_name
The database name.
link_identifier
fbsql_connect()나 fbsql_pconnect()가 반환한 FrontBase 연결 식별자.
선택적이고 지정하지 않았을 때, 함수는 FrontBase 서버로 열려있는 연결을 찾고, 찾지 못하면 fbsql_connect()를 인수 없이 호출했을 때처럼 연결을 시도합니다.
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.