<?php $host = 'localhost:/StypBD.fdb'; $dbh = ibase_connect($host, "SYSDBA", "masterkey", 'ISO8859_2'); $stmt = 'SELECT * FROM student'; $sth = ibase_query($dbh, $stmt); while ($row = ibase_fetch_object($sth)) { } ibase_free_result($sth); ibase_close($dbh); ?>
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
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.
; 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.