Witam, tak jak w temacie mam problem z połączeniem w php z bazą firebirda

  1. <?php
  2.  
  3. $host = 'localhost:/StypBD.fdb';
  4.  
  5. $dbh = ibase_connect($host, "SYSDBA", "masterkey", 'ISO8859_2');
  6. $stmt = 'SELECT * FROM student';
  7. $sth = ibase_query($dbh, $stmt);
  8. while ($row = ibase_fetch_object($sth)) {
  9. echo $row->nazwisko, "\n";
  10. }
  11. ibase_free_result($sth);
  12. ibase_close($dbh);
  13. ?>


Wyświetla mi się następujący komunikat błędu:
Kod
Fatal error: Call to undefined function ibase_connect() in C:\xampp\htdocs\pol.php on line 5


dodam iż w pliku php.ini
dodałem:
Kod
extension=php_interbase.dll
extension=php_pdo_firebird.dll


Jak widać wszystko robię za pomocą Xamppa proszę o jakie kolwiek wskazówki.

Ten problem udało mi się już rozwiązać ale mam następujący:
Kod
Parse error: syntax error, unexpected 'and' (T_LOGICAL_AND) in C:\php.ini on line 217


Linijki 210-230 wyglądają następująco:

Kod
; Enable the PHP scripting language engine under Apache.
; http://php.net/engine
engine = On

; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = Off
; XAMPP for Linux is currently old fashioned
;short_open_tag = On

; Allow ASP-style <% %> tags.