Last active
February 26, 2023 01:14
-
-
Save audtg/c2a224f854ddda83d5cb7197ce9030e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
можете связаться по тг username: @n_u_o ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Спасибо !