Skip to content

Instantly share code, notes, and snippets.

@audtg
Last active February 26, 2023 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save audtg/c2a224f854ddda83d5cb7197ce9030e8 to your computer and use it in GitHub Desktop.
Save audtg/c2a224f854ddda83d5cb7197ce9030e8 to your computer and use it in GitHub Desktop.
download http://www.firebirdsql.org/en/firebird-2-5-6/
1. в php.ini расскомментировать extension=php_interbase.dll
2. В папку C:\OpenServer\modules\http\Apache-2.4\bin нужно скопировать 2 файла:
C:\Windows\System32\GDS32.DLL
и
C:\Program Files\Firebird\Firebird_2_5\WOW64\fbclient.dll
3. C:\Windows\System32\GDS32.DLL вырезать и вставить в папку C:\Program Files\Firebird\Firebird_2_5\bin
Перезапустить OpenServer.
<?php
$host = 'localhost:C:\Program Files\Firebird\Firebird_2_5\examples\empbuild\employee.fdb';
$username = 'sysdba';
$password = 'masterkey';
$dbh = ibase_connect($host, $username, $password, 'utf-8');
$sth = ibase_query($dbh, 'select * from country');
while ($row = ibase_fetch_object($sth)) {
echo $row->COUNTRY.': '.$row->CURRENCY.PHP_EOL;
}
@yuriskorobogatov
Copy link

Спасибо !

@nuo200202
Copy link

можете связаться по тг username: @n_u_o ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment