(PHP 4 >= 4.0.7, PHP 5, PHP 7)
fbsql_db_status — Get the status for a given database
$database_name
[, resource $link_identifier
] ) : intGets the current status of the specified database.
database_name
The database name.
link_identifier
锟斤拷 fbsql_connect() 锟斤拷 fbsql_pconnect() 锟斤拷锟截碉拷 FrontBase 锟斤拷锟接憋拷识锟斤拷.
锟斤拷锟窖★拷锟轿粗革拷锟斤拷锟斤拷锟斤拷锟斤拷岢拷圆锟斤拷锟揭伙拷锟斤拷锟� FrontBase 锟斤拷锟斤拷锟斤拷锟侥匡拷锟斤拷锟斤拷锟接o拷锟斤拷锟斤拷没锟斤拷锟揭碉拷锟斤拷锟斤拷锟斤拷锟斤拷锟接o拷锟结尝锟斤拷通锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 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.