NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Defining ibase_pconnect()


Joined: 15 Nov 2004
Posts: 3
Reply with quote
I am attempting to connect to a Firebird 1.5 (Interbase) database from a newly established web server. The web server installed via NuSphere Tech Platfor 3.0.1 for Linux is running under Fedora Core 2 Linux, with all of the latest operating system patches applied.

Apache and php appear to be properly configured, but I continue to get the following error when attempting to access a dynamic web page that pulls its content from a remote Firebird database via ibase_pconnect():

Fatal error: Call to undefined function: ibase_pconnect() in /usr/local/nusphere/apache/htdocs/db_interbase.php on line 49

The following lines are included in my php.ini:

extension=php_interbase.so
extension=php_pgsql.so


; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = On

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = On


interbase.so is located in /usr/local/nusphere/apache/php


Any help in resolving this issue is most deeply appreciated.


Many Thanks!
View user's profileFind all posts by melcoxSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
php_xxxx are mostly Win32 extensions. Under Linux they have no php_ prefix in their names. As with interbase extension in particular, you have to compile it.

Hopefully, next TechPlat for linux will come with support for interbase and postgres, so you won't need to compile anything.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Defining ibase_pconnect()


Joined: 15 Nov 2004
Posts: 3
Reply with quote
Thanks for your response.

Kindly provide step by step instructions for doing the compilation.

Many thanks!
View user's profileFind all posts by melcoxSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
please try interbase.so that is included with TechPlatform.
Run phpinfo() function, find full path to php.ini listed in the topmost header,
open php.ini and add the following line
Code:
extesion=interbase.so

immediately after the last extension= line.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 15 Nov 2004
Posts: 3
Reply with quote
Tried it. It did not work.

I've now installed Apache and php from source, compiling php --with-interbase, and everything is A-OK.

Thanks!
View user's profileFind all posts by melcoxSend private message
Defining ibase_pconnect()
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic