downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

fbsql_drop_db> <fbsql_db_query
[edit] Last updated: Fri, 18 Sep 2009

view this page in

fbsql_db_status

(PHP 4 >= 4.0.7, PHP 5)

fbsql_db_statusGet the status for a given database

Описание

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

Gets the current status of the specified database.

Параметри

database_name

The database name.

link_identifier

Идентификатор на връзката към FrontBase, върнат от fbsql_connect() или fbsql_pconnect().

Ако е незадължителна и не е указана, функцията ще се опита да намери отворена връзка към сървъра 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.

Вж. също



add a note add a note User Contributed Notes fbsql_db_status
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites