CINXE.COM
PHP: ibase_server_info - Manual
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP: ibase_server_info - Manual </title> <link rel="icon" type="image/svg+xml" sizes="any" href="https://www.php.net/favicon.svg?v=2"> <link rel="icon" type="image/png" sizes="196x196" href="https://www.php.net/favicon-196x196.png?v=2"> <link rel="icon" type="image/png" sizes="32x32" href="https://www.php.net/favicon-32x32.png?v=2"> <link rel="icon" type="image/png" sizes="16x16" href="https://www.php.net/favicon-16x16.png?v=2"> <link rel="shortcut icon" href="https://www.php.net/favicon.ico?v=2"> <link rel="search" type="application/opensearchdescription+xml" href="http://php.net/phpnetimprovedsearch.src" title="Add PHP.net search"> <link rel="alternate" type="application/atom+xml" href="https://www.php.net/releases/feed.php" title="PHP Release feed"> <link rel="alternate" type="application/atom+xml" href="https://www.php.net/feed.atom" title="PHP: Hypertext Preprocessor"> <link rel="canonical" href="https://www.php.net/manual/en/function.ibase-server-info.php"> <link rel="shorturl" href="https://www.php.net/ibase-server-info"> <link rel="alternate" href="https://www.php.net/ibase-server-info" hreflang="x-default"> <link rel="contents" href="https://www.php.net/manual/en/index.php"> <link rel="index" href="https://www.php.net/manual/en/ref.ibase.php"> <link rel="prev" href="https://www.php.net/manual/en/function.ibase-rollback-ret.php"> <link rel="next" href="https://www.php.net/manual/en/function.ibase-service-attach.php"> <link rel="alternate" href="https://www.php.net/manual/en/function.ibase-server-info.php" hreflang="en"> <link rel="alternate" href="https://www.php.net/manual/de/function.ibase-server-info.php" hreflang="de"> <link rel="alternate" href="https://www.php.net/manual/es/function.ibase-server-info.php" hreflang="es"> <link rel="alternate" href="https://www.php.net/manual/fr/function.ibase-server-info.php" hreflang="fr"> <link rel="alternate" href="https://www.php.net/manual/it/function.ibase-server-info.php" hreflang="it"> <link rel="alternate" href="https://www.php.net/manual/ja/function.ibase-server-info.php" hreflang="ja"> <link rel="alternate" href="https://www.php.net/manual/pt_BR/function.ibase-server-info.php" hreflang="pt_BR"> <link rel="alternate" href="https://www.php.net/manual/ru/function.ibase-server-info.php" hreflang="ru"> <link rel="alternate" href="https://www.php.net/manual/tr/function.ibase-server-info.php" hreflang="tr"> <link rel="alternate" href="https://www.php.net/manual/uk/function.ibase-server-info.php" hreflang="uk"> <link rel="alternate" href="https://www.php.net/manual/zh/function.ibase-server-info.php" hreflang="zh"> <link rel="stylesheet" type="text/css" href="/cached.php?t=1707321815&f=/fonts/Fira/fira.css" media="screen"> <link rel="stylesheet" type="text/css" href="/cached.php?t=1707321815&f=/fonts/Font-Awesome/css/fontello.css" media="screen"> <link rel="stylesheet" type="text/css" href="/cached.php?t=1732428602&f=/styles/theme-base.css" media="screen"> <link rel="stylesheet" type="text/css" href="/cached.php?t=1730558402&f=/styles/theme-medium.css" media="screen"> <base href="https://www.php.net/manual/en/function.ibase-server-info.php"> <meta name="Description" content="PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world." /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:site" content="@official_php" /> <meta name="twitter:title" content="PHP: Hypertext Preprocessor" /> <meta name="twitter:description" content="PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world." /> <meta name="twitter:creator" content="@official_php" /> <meta name="twitter:image:src" content="https://www.php.net/images/meta-image.png" /> <meta itemprop="name" content="PHP: Hypertext Preprocessor" /> <meta itemprop="description" content="PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world." /> <meta itemprop="image" content="https://www.php.net/images/meta-image.png" /> <meta property="og:image" content="https://www.php.net/images/meta-image.png" /> <meta property="og:description" content="PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world." /> <link href="https://fosstodon.org/@php" rel="me" /> <!-- Matomo --> <script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(["setDoNotTrack", true]); _paq.push(["disableCookies"]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="https://analytics.php.net/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '1']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Matomo Code --> </head> <body class="docs "> <nav class="navbar navbar-fixed-top"> <div class="navbar__inner"> <a href="/" aria-label="PHP Home" class="navbar__brand"> <img src="/images/logos/php-logo-white.svg" aria-hidden="true" width="80" height="40" > </a> <div id="navbar__offcanvas" tabindex="-1" class="navbar__offcanvas" aria-label="Menu" > <button id="navbar__close-button" class="navbar__icon-item navbar_icon-item--visually-aligned navbar__close-button" > <svg xmlns="http://www.w3.org/2000/svg" width="24" viewBox="0 0 24 24" fill="currentColor"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" /></svg> </button> <ul class="navbar__nav"> <li class="navbar__item"> <a href="/downloads.php" class="navbar__link " > Downloads </a> </li> <li class="navbar__item"> <a href="/docs.php" aria-current="page" class="navbar__link navbar__link--active " > Documentation </a> </li> <li class="navbar__item"> <a href="/get-involved.php" class="navbar__link " > Get Involved </a> </li> <li class="navbar__item"> <a href="/support.php" class="navbar__link " > Help </a> </li> <li class="navbar__item"> <a href="/releases/8.4/index.php" class="navbar__link navbar__release" > <img src="/images/php8/logo_php8_4.svg" alt="PHP 8.4"> </a> </li> </ul> </div> <div class="navbar__right"> <!-- Desktop default search --> <form action="/manual-lookup.php" class="navbar__search-form" > <label for="navbar__search-input" aria-label="Search docs"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="11" cy="11" r="8"></circle> <line x1="21" y1="21" x2="16.65" y2="16.65"></line> </svg> </label> <input type="search" name="pattern" id="navbar__search-input" class="navbar__search-input" placeholder="Search docs" accesskey="s" > <input type="hidden" name="scope" value="quickref"> </form> <!-- Desktop encanced search --> <button id="navbar__search-button" class="navbar__search-button" hidden > <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="11" cy="11" r="8"></circle> <line x1="21" y1="21" x2="16.65" y2="16.65"></line> </svg> Search docs </button> <!-- Mobile default items --> <a id="navbar__search-link" href="/lookup-form.php" aria-label="Search docs" class="navbar__icon-item navbar__search-link" > <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="11" cy="11" r="8"></circle> <line x1="21" y1="21" x2="16.65" y2="16.65"></line> </svg> </a> <a id="navbar__menu-link" href="/menu.php" aria-label="Menu" class="navbar__icon-item navbar_icon-item--visually-aligned navbar_menu-link" > <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="currentColor" > <path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" /> </svg> </a> <!-- Mobile enhanced items --> <button id="navbar__search-button-mobile" aria-label="Search docs" class="navbar__icon-item navbar__search-button-mobile" hidden > <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="11" cy="11" r="8"></circle> <line x1="21" y1="21" x2="16.65" y2="16.65"></line> </svg> </button> <button id="navbar__menu-button" aria-label="Menu" class="navbar__icon-item navbar_icon-item--visually-aligned" hidden > <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="currentColor" > <path d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" /> </svg> </button> </div> <div id="navbar__backdrop" class="navbar__backdrop" ></div> </div> <div id="flash-message"></div> </nav> <div class="headsup"><a href='/conferences/index.php#2024-12-13-1'>International PHP Conference Berlin 2025</a></div> <nav id="trick"><div><dl> <dt><a href='/manual/en/getting-started.php'>Getting Started</a></dt> <dd><a href='/manual/en/introduction.php'>Introduction</a></dd> <dd><a href='/manual/en/tutorial.php'>A simple tutorial</a></dd> <dt><a href='/manual/en/langref.php'>Language Reference</a></dt> <dd><a href='/manual/en/language.basic-syntax.php'>Basic syntax</a></dd> <dd><a href='/manual/en/language.types.php'>Types</a></dd> <dd><a href='/manual/en/language.variables.php'>Variables</a></dd> <dd><a href='/manual/en/language.constants.php'>Constants</a></dd> <dd><a href='/manual/en/language.expressions.php'>Expressions</a></dd> <dd><a href='/manual/en/language.operators.php'>Operators</a></dd> <dd><a href='/manual/en/language.control-structures.php'>Control Structures</a></dd> <dd><a href='/manual/en/language.functions.php'>Functions</a></dd> <dd><a href='/manual/en/language.oop5.php'>Classes and Objects</a></dd> <dd><a href='/manual/en/language.namespaces.php'>Namespaces</a></dd> <dd><a href='/manual/en/language.enumerations.php'>Enumerations</a></dd> <dd><a href='/manual/en/language.errors.php'>Errors</a></dd> <dd><a href='/manual/en/language.exceptions.php'>Exceptions</a></dd> <dd><a href='/manual/en/language.fibers.php'>Fibers</a></dd> <dd><a href='/manual/en/language.generators.php'>Generators</a></dd> <dd><a href='/manual/en/language.attributes.php'>Attributes</a></dd> <dd><a href='/manual/en/language.references.php'>References Explained</a></dd> <dd><a href='/manual/en/reserved.variables.php'>Predefined Variables</a></dd> <dd><a href='/manual/en/reserved.exceptions.php'>Predefined Exceptions</a></dd> <dd><a href='/manual/en/reserved.interfaces.php'>Predefined Interfaces and Classes</a></dd> <dd><a href='/manual/en/reserved.attributes.php'>Predefined Attributes</a></dd> <dd><a href='/manual/en/context.php'>Context options and parameters</a></dd> <dd><a href='/manual/en/wrappers.php'>Supported Protocols and Wrappers</a></dd> </dl> <dl> <dt><a href='/manual/en/security.php'>Security</a></dt> <dd><a href='/manual/en/security.intro.php'>Introduction</a></dd> <dd><a href='/manual/en/security.general.php'>General considerations</a></dd> <dd><a href='/manual/en/security.cgi-bin.php'>Installed as CGI binary</a></dd> <dd><a href='/manual/en/security.apache.php'>Installed as an Apache module</a></dd> <dd><a href='/manual/en/security.sessions.php'>Session Security</a></dd> <dd><a href='/manual/en/security.filesystem.php'>Filesystem Security</a></dd> <dd><a href='/manual/en/security.database.php'>Database Security</a></dd> <dd><a href='/manual/en/security.errors.php'>Error Reporting</a></dd> <dd><a href='/manual/en/security.variables.php'>User Submitted Data</a></dd> <dd><a href='/manual/en/security.hiding.php'>Hiding PHP</a></dd> <dd><a href='/manual/en/security.current.php'>Keeping Current</a></dd> <dt><a href='/manual/en/features.php'>Features</a></dt> <dd><a href='/manual/en/features.http-auth.php'>HTTP authentication with PHP</a></dd> <dd><a href='/manual/en/features.cookies.php'>Cookies</a></dd> <dd><a href='/manual/en/features.sessions.php'>Sessions</a></dd> <dd><a href='/manual/en/features.file-upload.php'>Handling file uploads</a></dd> <dd><a href='/manual/en/features.remote-files.php'>Using remote files</a></dd> <dd><a href='/manual/en/features.connection-handling.php'>Connection handling</a></dd> <dd><a href='/manual/en/features.persistent-connections.php'>Persistent Database Connections</a></dd> <dd><a href='/manual/en/features.commandline.php'>Command line usage</a></dd> <dd><a href='/manual/en/features.gc.php'>Garbage Collection</a></dd> <dd><a href='/manual/en/features.dtrace.php'>DTrace Dynamic Tracing</a></dd> </dl> <dl> <dt><a href='/manual/en/funcref.php'>Function Reference</a></dt> <dd><a href='/manual/en/refs.basic.php.php'>Affecting PHP's Behaviour</a></dd> <dd><a href='/manual/en/refs.utilspec.audio.php'>Audio Formats Manipulation</a></dd> <dd><a href='/manual/en/refs.remote.auth.php'>Authentication Services</a></dd> <dd><a href='/manual/en/refs.utilspec.cmdline.php'>Command Line Specific Extensions</a></dd> <dd><a href='/manual/en/refs.compression.php'>Compression and Archive Extensions</a></dd> <dd><a href='/manual/en/refs.crypto.php'>Cryptography Extensions</a></dd> <dd><a href='/manual/en/refs.database.php'>Database Extensions</a></dd> <dd><a href='/manual/en/refs.calendar.php'>Date and Time Related Extensions</a></dd> <dd><a href='/manual/en/refs.fileprocess.file.php'>File System Related Extensions</a></dd> <dd><a href='/manual/en/refs.international.php'>Human Language and Character Encoding Support</a></dd> <dd><a href='/manual/en/refs.utilspec.image.php'>Image Processing and Generation</a></dd> <dd><a href='/manual/en/refs.remote.mail.php'>Mail Related Extensions</a></dd> <dd><a href='/manual/en/refs.math.php'>Mathematical Extensions</a></dd> <dd><a href='/manual/en/refs.utilspec.nontext.php'>Non-Text MIME Output</a></dd> <dd><a href='/manual/en/refs.fileprocess.process.php'>Process Control Extensions</a></dd> <dd><a href='/manual/en/refs.basic.other.php'>Other Basic Extensions</a></dd> <dd><a href='/manual/en/refs.remote.other.php'>Other Services</a></dd> <dd><a href='/manual/en/refs.search.php'>Search Engine Extensions</a></dd> <dd><a href='/manual/en/refs.utilspec.server.php'>Server Specific Extensions</a></dd> <dd><a href='/manual/en/refs.basic.session.php'>Session Extensions</a></dd> <dd><a href='/manual/en/refs.basic.text.php'>Text Processing</a></dd> <dd><a href='/manual/en/refs.basic.vartype.php'>Variable and Type Related Extensions</a></dd> <dd><a href='/manual/en/refs.webservice.php'>Web Services</a></dd> <dd><a href='/manual/en/refs.utilspec.windows.php'>Windows Only Extensions</a></dd> <dd><a href='/manual/en/refs.xml.php'>XML Manipulation</a></dd> <dd><a href='/manual/en/refs.ui.php'>GUI Extensions</a></dd> </dl> <dl> <dt>Keyboard Shortcuts</dt><dt>?</dt> <dd>This help</dd> <dt>j</dt> <dd>Next menu item</dd> <dt>k</dt> <dd>Previous menu item</dd> <dt>g p</dt> <dd>Previous man page</dd> <dt>g n</dt> <dd>Next man page</dd> <dt>G</dt> <dd>Scroll to bottom</dd> <dt>g g</dt> <dd>Scroll to top</dd> <dt>g h</dt> <dd>Goto homepage</dd> <dt>g s</dt> <dd>Goto search<br>(current page)</dd> <dt>/</dt> <dd>Focus search box</dd> </dl></div></nav> <div id="goto"> <div class="search"> <div class="text"></div> <div class="results"><ul></ul></div> </div> </div> <div id="breadcrumbs" class="clearfix"> <div id="breadcrumbs-inner"> <div class="next"> <a href="function.ibase-service-attach.php"> ibase_service_attach » </a> </div> <div class="prev"> <a href="function.ibase-rollback-ret.php"> « ibase_rollback_ret </a> </div> <ul> <li><a href='index.php'>PHP Manual</a></li> <li><a href='funcref.php'>Function Reference</a></li> <li><a href='refs.database.php'>Database Extensions</a></li> <li><a href='refs.database.vendors.php'>Vendor Specific Database Extensions</a></li> <li><a href='book.ibase.php'>Firebird/InterBase</a></li> <li><a href='ref.ibase.php'>Firebird/InterBase Functions</a></li> </ul> </div> </div> <div id="layout" class="clearfix"> <section id="layout-content"> <div class="page-tools"> <div class="change-language"> <form action="/manual/change.php" method="get" id="changelang" name="changelang"> <fieldset> <label for="changelang-langs">Change language:</label> <select onchange="document.changelang.submit()" name="page" id="changelang-langs"> <option value='en/function.ibase-server-info.php' selected="selected">English</option> <option value='de/function.ibase-server-info.php'>German</option> <option value='es/function.ibase-server-info.php'>Spanish</option> <option value='fr/function.ibase-server-info.php'>French</option> <option value='it/function.ibase-server-info.php'>Italian</option> <option value='ja/function.ibase-server-info.php'>Japanese</option> <option value='pt_BR/function.ibase-server-info.php'>Brazilian Portuguese</option> <option value='ru/function.ibase-server-info.php'>Russian</option> <option value='tr/function.ibase-server-info.php'>Turkish</option> <option value='uk/function.ibase-server-info.php'>Ukrainian</option> <option value='zh/function.ibase-server-info.php'>Chinese (Simplified)</option> <option value='help-translate.php'>Other</option> </select> </fieldset> </form> </div> </div><div id="function.ibase-server-info" class="refentry"> <div class="refnamediv"> <h1 class="refname">ibase_server_info</h1> <p class="verinfo">(PHP 5, PHP 7 < 7.4.0)</p><p class="refpurpose"><span class="refname">ibase_server_info</span> — <span class="dc-title">Request information about a database server</span></p> </div> <div class="refsect1 description" id="refsect1-function.ibase-server-info-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="methodname"><strong>ibase_server_info</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$service_handle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$action</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div> </div> <div class="refsect1 parameters" id="refsect1-function.ibase-server-info-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt><code class="parameter">service_handle</code></dt> <dd> <p class="para"> A previously created connection to the database server. </p> </dd> <dt><code class="parameter">action</code></dt> <dd> <p class="para"> A valid constant. </p> </dd> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.ibase-server-info-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns mixed types depending on context. </p> </div> <div class="refsect1 examples" id="refsect1-function.ibase-server-info-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-1272"> <p><strong>Example #1 <span class="function"><a href="function.ibase-service-attach.php" class="function">ibase_service_attach()</a></span> example</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB"><?php<br /> </span><span style="color: #FF8000">// Attach to the remote Firebird server<br /> </span><span style="color: #007700">if ((</span><span style="color: #0000BB">$service </span><span style="color: #007700">= </span><span style="color: #0000BB">ibase_service_attach</span><span style="color: #007700">(</span><span style="color: #DD0000">'10.1.1.254/3050'</span><span style="color: #007700">, </span><span style="color: #DD0000">'sysdba'</span><span style="color: #007700">, </span><span style="color: #DD0000">'masterkey'</span><span style="color: #007700">)) != </span><span style="color: #0000BB">FALSE</span><span style="color: #007700">) {<br /><br /> </span><span style="color: #FF8000">// Successfully attached.<br /><br /> // Output the info<br /> </span><span style="color: #007700">echo </span><span style="color: #DD0000">"Server version: " </span><span style="color: #007700">. </span><span style="color: #0000BB">ibase_server_info</span><span style="color: #007700">(</span><span style="color: #0000BB">$service</span><span style="color: #007700">, </span><span style="color: #0000BB">IBASE_SVC_SERVER_VERSION</span><span style="color: #007700">) . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /> echo </span><span style="color: #DD0000">"Server implementation: " </span><span style="color: #007700">. </span><span style="color: #0000BB">ibase_server_info</span><span style="color: #007700">(</span><span style="color: #0000BB">$service</span><span style="color: #007700">, </span><span style="color: #0000BB">IBASE_SVC_IMPLEMENTATION</span><span style="color: #007700">) . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /> echo </span><span style="color: #DD0000">"Server users: " </span><span style="color: #007700">. </span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">ibase_server_info</span><span style="color: #007700">(</span><span style="color: #0000BB">$service</span><span style="color: #007700">, </span><span style="color: #0000BB">IBASE_SVC_GET_USERS</span><span style="color: #007700">), </span><span style="color: #0000BB">true</span><span style="color: #007700">) . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /> echo </span><span style="color: #DD0000">"Server directory: " </span><span style="color: #007700">. </span><span style="color: #0000BB">ibase_server_info</span><span style="color: #007700">(</span><span style="color: #0000BB">$service</span><span style="color: #007700">, </span><span style="color: #0000BB">IBASE_SVC_GET_ENV</span><span style="color: #007700">) . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /> echo </span><span style="color: #DD0000">"Server lock path: " </span><span style="color: #007700">. </span><span style="color: #0000BB">ibase_server_info</span><span style="color: #007700">(</span><span style="color: #0000BB">$service</span><span style="color: #007700">, </span><span style="color: #0000BB">IBASE_SVC_GET_ENV_LOCK</span><span style="color: #007700">) . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /> echo </span><span style="color: #DD0000">"Server lib path: " </span><span style="color: #007700">. </span><span style="color: #0000BB">ibase_server_info</span><span style="color: #007700">(</span><span style="color: #0000BB">$service</span><span style="color: #007700">, </span><span style="color: #0000BB">IBASE_SVC_GET_ENV_MSG</span><span style="color: #007700">) . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /> echo </span><span style="color: #DD0000">"Path of user db: " </span><span style="color: #007700">. </span><span style="color: #0000BB">ibase_server_info</span><span style="color: #007700">(</span><span style="color: #0000BB">$service</span><span style="color: #007700">, </span><span style="color: #0000BB">IBASE_SVC_USER_DBPATH</span><span style="color: #007700">) . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /> echo </span><span style="color: #DD0000">"Established connections: " </span><span style="color: #007700">. </span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">ibase_server_info</span><span style="color: #007700">(</span><span style="color: #0000BB">$service</span><span style="color: #007700">, </span><span style="color: #0000BB">IBASE_SVC_SVR_DB_INFO</span><span style="color: #007700">),</span><span style="color: #0000BB">true</span><span style="color: #007700">) . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /><br /> </span><span style="color: #FF8000">// Detach from server (disconnect)<br /> </span><span style="color: #0000BB">ibase_service_detach</span><span style="color: #007700">(</span><span style="color: #0000BB">$service</span><span style="color: #007700">);<br /><br /> }<br /> else {<br /> </span><span style="color: #FF8000">// Output message on error<br /> </span><span style="color: #0000BB">$conn_error </span><span style="color: #007700">= </span><span style="color: #0000BB">ibase_errmsg</span><span style="color: #007700">();<br /> die(</span><span style="color: #0000BB">$conn_error</span><span style="color: #007700">);<br /> }<br /></span><span style="color: #0000BB">?></span></span></code></div> </div> <div class="example-contents"><p>The above example will output:</p></div> <div class="example-contents screen"> <div class="examplescode"><pre class="examplescode">Server version: LI-V3.0.4.33054 Firebird 3.0 Server implementation: Firebird/Linux/AMD/Intel/x64 Server users: Array ( [0] => Array ( [user_name] => SYSDBA [first_name] => Sql [middle_name] => Server [last_name] => Administrator [user_id] => 0 [group_id] => 0 ) ) Server directory: /etc/firebird/ Server lock path: /tmp/firebird/ Server lib path: /usr/lib64/firebird/lib/ Path of user db: /var/lib/firebird/secdb/security3.fdb Established connections: Array ( [attachments] => 3 [databases] => 2 [0] => /srv/firebird/poss.fdb [1] => /srv/firebird/employees.fdb )</pre> </div> </div> </div> </p> </div> </div> <div class="contribute"> <h3 class="title">Found A Problem?</h3> <div> </div> <div class="edit-bug"> <a href="https://github.com/php/doc-base/blob/master/README.md" title="This will take you to our contribution guidelines on GitHub" target="_blank" rel="noopener noreferrer">Learn How To Improve This Page</a> • <a href="https://github.com/php/doc-en/blob/master/reference/ibase/functions/ibase-server-info.xml">Submit a Pull Request</a> • <a href="https://github.com/php/doc-en/issues/new?body=From%20manual%20page:%20https:%2F%2Fphp.net%2Ffunction.ibase-server-info%0A%0A---">Report a Bug</a> </div> </div><section id="usernotes"> <div class="head"> <span class="action"><a href="/manual/add-note.php?sect=function.ibase-server-info&repo=en&redirect=https://www.php.net/manual/en/function.ibase-server-info.php">+<small>add a note</small></a></span> <h3 class="title">User Contributed Notes </h3> </div> <div class="note">There are no user contributed notes for this page.</div></section> </section><!-- layout-content --> <aside class='layout-menu'> <ul class='parent-menu-list'> <li> <a href="ref.ibase.php">Firebird/InterBase Functions</a> <ul class='child-menu-list'> <li class=""> <a href="function.fbird-add-user.php" title="fbird_​add_​user">fbird_​add_​user</a> </li> <li class=""> <a href="function.fbird-affected-rows.php" title="fbird_​affected_​rows">fbird_​affected_​rows</a> </li> <li class=""> <a href="function.fbird-backup.php" title="fbird_​backup">fbird_​backup</a> </li> <li class=""> <a href="function.fbird-blob-add.php" title="fbird_​blob_​add">fbird_​blob_​add</a> </li> <li class=""> <a href="function.fbird-blob-cancel.php" title="fbird_​blob_​cancel">fbird_​blob_​cancel</a> </li> <li class=""> <a href="function.fbird-blob-close.php" title="fbird_​blob_​close">fbird_​blob_​close</a> </li> <li class=""> <a href="function.fbird-blob-create.php" title="fbird_​blob_​create">fbird_​blob_​create</a> </li> <li class=""> <a href="function.fbird-blob-echo.php" title="fbird_​blob_​echo">fbird_​blob_​echo</a> </li> <li class=""> <a href="function.fbird-blob-get.php" title="fbird_​blob_​get">fbird_​blob_​get</a> </li> <li class=""> <a href="function.fbird-blob-import.php" title="fbird_​blob_​import">fbird_​blob_​import</a> </li> <li class=""> <a href="function.fbird-blob-info.php" title="fbird_​blob_​info">fbird_​blob_​info</a> </li> <li class=""> <a href="function.fbird-blob-open.php" title="fbird_​blob_​open">fbird_​blob_​open</a> </li> <li class=""> <a href="function.fbird-close.php" title="fbird_​close">fbird_​close</a> </li> <li class=""> <a href="function.fbird-commit.php" title="fbird_​commit">fbird_​commit</a> </li> <li class=""> <a href="function.fbird-commit-ret.php" title="fbird_​commit_​ret">fbird_​commit_​ret</a> </li> <li class=""> <a href="function.fbird-connect.php" title="fbird_​connect">fbird_​connect</a> </li> <li class=""> <a href="function.fbird-db-info.php" title="fbird_​db_​info">fbird_​db_​info</a> </li> <li class=""> <a href="function.fbird-delete-user.php" title="fbird_​delete_​user">fbird_​delete_​user</a> </li> <li class=""> <a href="function.fbird-drop-db.php" title="fbird_​drop_​db">fbird_​drop_​db</a> </li> <li class=""> <a href="function.fbird-errcode.php" title="fbird_​errcode">fbird_​errcode</a> </li> <li class=""> <a href="function.fbird-errmsg.php" title="fbird_​errmsg">fbird_​errmsg</a> </li> <li class=""> <a href="function.fbird-execute.php" title="fbird_​execute">fbird_​execute</a> </li> <li class=""> <a href="function.fbird-fetch-assoc.php" title="fbird_​fetch_​assoc">fbird_​fetch_​assoc</a> </li> <li class=""> <a href="function.fbird-fetch-object.php" title="fbird_​fetch_​object">fbird_​fetch_​object</a> </li> <li class=""> <a href="function.fbird-fetch-row.php" title="fbird_​fetch_​row">fbird_​fetch_​row</a> </li> <li class=""> <a href="function.fbird-field-info.php" title="fbird_​field_​info">fbird_​field_​info</a> </li> <li class=""> <a href="function.fbird-free-event-handler.php" title="fbird_​free_​event_​handler">fbird_​free_​event_​handler</a> </li> <li class=""> <a href="function.fbird-free-query.php" title="fbird_​free_​query">fbird_​free_​query</a> </li> <li class=""> <a href="function.fbird-free-result.php" title="fbird_​free_​result">fbird_​free_​result</a> </li> <li class=""> <a href="function.fbird-gen-id.php" title="fbird_​gen_​id">fbird_​gen_​id</a> </li> <li class=""> <a href="function.fbird-maintain-db.php" title="fbird_​maintain_​db">fbird_​maintain_​db</a> </li> <li class=""> <a href="function.fbird-modify-user.php" title="fbird_​modify_​user">fbird_​modify_​user</a> </li> <li class=""> <a href="function.fbird-name-result.php" title="fbird_​name_​result">fbird_​name_​result</a> </li> <li class=""> <a href="function.fbird-num-fields.php" title="fbird_​num_​fields">fbird_​num_​fields</a> </li> <li class=""> <a href="function.fbird-num-params.php" title="fbird_​num_​params">fbird_​num_​params</a> </li> <li class=""> <a href="function.fbird-param-info.php" title="fbird_​param_​info">fbird_​param_​info</a> </li> <li class=""> <a href="function.fbird-pconnect.php" title="fbird_​pconnect">fbird_​pconnect</a> </li> <li class=""> <a href="function.fbird-prepare.php" title="fbird_​prepare">fbird_​prepare</a> </li> <li class=""> <a href="function.fbird-query.php" title="fbird_​query">fbird_​query</a> </li> <li class=""> <a href="function.fbird-restore.php" title="fbird_​restore">fbird_​restore</a> </li> <li class=""> <a href="function.fbird-rollback.php" title="fbird_​rollback">fbird_​rollback</a> </li> <li class=""> <a href="function.fbird-rollback-ret.php" title="fbird_​rollback_​ret">fbird_​rollback_​ret</a> </li> <li class=""> <a href="function.fbird-server-info.php" title="fbird_​server_​info">fbird_​server_​info</a> </li> <li class=""> <a href="function.fbird-service-attach.php" title="fbird_​service_​attach">fbird_​service_​attach</a> </li> <li class=""> <a href="function.fbird-service-detach.php" title="fbird_​service_​detach">fbird_​service_​detach</a> </li> <li class=""> <a href="function.fbird-set-event-handler.php" title="fbird_​set_​event_​handler">fbird_​set_​event_​handler</a> </li> <li class=""> <a href="function.fbird-trans.php" title="fbird_​trans">fbird_​trans</a> </li> <li class=""> <a href="function.fbird-wait-event.php" title="fbird_​wait_​event">fbird_​wait_​event</a> </li> <li class=""> <a href="function.ibase-add-user.php" title="ibase_​add_​user">ibase_​add_​user</a> </li> <li class=""> <a href="function.ibase-affected-rows.php" title="ibase_​affected_​rows">ibase_​affected_​rows</a> </li> <li class=""> <a href="function.ibase-backup.php" title="ibase_​backup">ibase_​backup</a> </li> <li class=""> <a href="function.ibase-blob-add.php" title="ibase_​blob_​add">ibase_​blob_​add</a> </li> <li class=""> <a href="function.ibase-blob-cancel.php" title="ibase_​blob_​cancel">ibase_​blob_​cancel</a> </li> <li class=""> <a href="function.ibase-blob-close.php" title="ibase_​blob_​close">ibase_​blob_​close</a> </li> <li class=""> <a href="function.ibase-blob-create.php" title="ibase_​blob_​create">ibase_​blob_​create</a> </li> <li class=""> <a href="function.ibase-blob-echo.php" title="ibase_​blob_​echo">ibase_​blob_​echo</a> </li> <li class=""> <a href="function.ibase-blob-get.php" title="ibase_​blob_​get">ibase_​blob_​get</a> </li> <li class=""> <a href="function.ibase-blob-import.php" title="ibase_​blob_​import">ibase_​blob_​import</a> </li> <li class=""> <a href="function.ibase-blob-info.php" title="ibase_​blob_​info">ibase_​blob_​info</a> </li> <li class=""> <a href="function.ibase-blob-open.php" title="ibase_​blob_​open">ibase_​blob_​open</a> </li> <li class=""> <a href="function.ibase-close.php" title="ibase_​close">ibase_​close</a> </li> <li class=""> <a href="function.ibase-commit.php" title="ibase_​commit">ibase_​commit</a> </li> <li class=""> <a href="function.ibase-commit-ret.php" title="ibase_​commit_​ret">ibase_​commit_​ret</a> </li> <li class=""> <a href="function.ibase-connect.php" title="ibase_​connect">ibase_​connect</a> </li> <li class=""> <a href="function.ibase-db-info.php" title="ibase_​db_​info">ibase_​db_​info</a> </li> <li class=""> <a href="function.ibase-delete-user.php" title="ibase_​delete_​user">ibase_​delete_​user</a> </li> <li class=""> <a href="function.ibase-drop-db.php" title="ibase_​drop_​db">ibase_​drop_​db</a> </li> <li class=""> <a href="function.ibase-errcode.php" title="ibase_​errcode">ibase_​errcode</a> </li> <li class=""> <a href="function.ibase-errmsg.php" title="ibase_​errmsg">ibase_​errmsg</a> </li> <li class=""> <a href="function.ibase-execute.php" title="ibase_​execute">ibase_​execute</a> </li> <li class=""> <a href="function.ibase-fetch-assoc.php" title="ibase_​fetch_​assoc">ibase_​fetch_​assoc</a> </li> <li class=""> <a href="function.ibase-fetch-object.php" title="ibase_​fetch_​object">ibase_​fetch_​object</a> </li> <li class=""> <a href="function.ibase-fetch-row.php" title="ibase_​fetch_​row">ibase_​fetch_​row</a> </li> <li class=""> <a href="function.ibase-field-info.php" title="ibase_​field_​info">ibase_​field_​info</a> </li> <li class=""> <a href="function.ibase-free-event-handler.php" title="ibase_​free_​event_​handler">ibase_​free_​event_​handler</a> </li> <li class=""> <a href="function.ibase-free-query.php" title="ibase_​free_​query">ibase_​free_​query</a> </li> <li class=""> <a href="function.ibase-free-result.php" title="ibase_​free_​result">ibase_​free_​result</a> </li> <li class=""> <a href="function.ibase-gen-id.php" title="ibase_​gen_​id">ibase_​gen_​id</a> </li> <li class=""> <a href="function.ibase-maintain-db.php" title="ibase_​maintain_​db">ibase_​maintain_​db</a> </li> <li class=""> <a href="function.ibase-modify-user.php" title="ibase_​modify_​user">ibase_​modify_​user</a> </li> <li class=""> <a href="function.ibase-name-result.php" title="ibase_​name_​result">ibase_​name_​result</a> </li> <li class=""> <a href="function.ibase-num-fields.php" title="ibase_​num_​fields">ibase_​num_​fields</a> </li> <li class=""> <a href="function.ibase-num-params.php" title="ibase_​num_​params">ibase_​num_​params</a> </li> <li class=""> <a href="function.ibase-param-info.php" title="ibase_​param_​info">ibase_​param_​info</a> </li> <li class=""> <a href="function.ibase-pconnect.php" title="ibase_​pconnect">ibase_​pconnect</a> </li> <li class=""> <a href="function.ibase-prepare.php" title="ibase_​prepare">ibase_​prepare</a> </li> <li class=""> <a href="function.ibase-query.php" title="ibase_​query">ibase_​query</a> </li> <li class=""> <a href="function.ibase-restore.php" title="ibase_​restore">ibase_​restore</a> </li> <li class=""> <a href="function.ibase-rollback.php" title="ibase_​rollback">ibase_​rollback</a> </li> <li class=""> <a href="function.ibase-rollback-ret.php" title="ibase_​rollback_​ret">ibase_​rollback_​ret</a> </li> <li class="current"> <a href="function.ibase-server-info.php" title="ibase_​server_​info">ibase_​server_​info</a> </li> <li class=""> <a href="function.ibase-service-attach.php" title="ibase_​service_​attach">ibase_​service_​attach</a> </li> <li class=""> <a href="function.ibase-service-detach.php" title="ibase_​service_​detach">ibase_​service_​detach</a> </li> <li class=""> <a href="function.ibase-set-event-handler.php" title="ibase_​set_​event_​handler">ibase_​set_​event_​handler</a> </li> <li class=""> <a href="function.ibase-trans.php" title="ibase_​trans">ibase_​trans</a> </li> <li class=""> <a href="function.ibase-wait-event.php" title="ibase_​wait_​event">ibase_​wait_​event</a> </li> </ul> </li> </ul> </aside> </div><!-- layout --> <footer> <div class="container footer-content"> <div class="row-fluid"> <ul class="footmenu"> <li><a href="/manual/en/copyright.php">Copyright © 2001-2024 The PHP Documentation Group</a></li> <li><a href="/my.php">My PHP.net</a></li> <li><a href="/contact.php">Contact</a></li> <li><a href="/sites.php">Other PHP.net sites</a></li> <li><a href="/privacy.php">Privacy policy</a></li> </ul> </div> </div> </footer> <script src="/cached.php?t=1731172202&f=/js/ext/jquery-3.6.0.min.js"></script> <script src="/cached.php?t=1723177202&f=/js/ext/FuzzySearch.min.js"></script> <script src="/cached.php?t=1707321815&f=/js/ext/mousetrap.min.js"></script> <script src="/cached.php?t=1707321815&f=/js/ext/jquery.scrollTo.min.js"></script> <script src="/cached.php?t=1733296801&f=/js/search.js"></script> <script src="/cached.php?t=1732876201&f=/js/common.js"></script> <script type="module" src="/cached.php?t=1733276402&f=/js/interactive-examples.js"></script> <a id="toTop" href="javascript:;"><span id="toTopHover"></span><img width="40" height="40" alt="To Top" src="/images/to-top@2x.png"></a> <div id="search-modal__backdrop" class="search-modal__backdrop"> <div role="dialog" aria-label="Search modal" id="search-modal" class="search-modal" > <div class="search-modal__header"> <div class="search-modal__form"> <div class="search-modal__input-icon"> <!-- https://feathericons.com search --> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <circle cx="11" cy="11" r="8"></circle> <line x1="21" y1="21" x2="16.65" y2="16.65"></line> </svg> </div> <input type="search" id="search-modal__input" class="search-modal__input" placeholder="Search docs" aria-label="Search docs" /> </div> <button aria-label="Close" class="search-modal__close"> <!-- https://pictogrammers.com/library/mdi/icon/close/ --> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="24" viewBox="0 0 24 24" > <path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"/> </svg> </button> </div> <div role="listbox" aria-label="Search results" id="search-modal__results" class="search-modal__results" ></div> <div class="search-modal__helper-text"> <div> <kbd>↑</kbd> and <kbd>↓</kbd> to navigate • <kbd>Enter</kbd> to select • <kbd>Esc</kbd> to close </div> <div> Press <kbd>Enter</kbd> without selection to search using Google </div> </div> </div> </div> </body> </html>