Re: [PHP-DB] PHP linux interbase Apache
Thank you very much everything work fine now steph Meir Kriheli a écrit : > On Thursday 06 September 2001 18:47, Stephane MOREL wrote: > > Thank you for your answer > > Interbase is installed in /opt/interbase. I don't use --with-apxs. > > What I need now is to eanble connection to interbase through PHP. > > It seems to me I only need to compile PHP with the > > --with-interbase=/opt/interbase to create the file interbase.so.But I guess > > I'm wrong > > Thank you for your help > > It all depends on how you install PHP (assuming you're using Apache) > > --with-apache : static PHP compiled into apache (needs to cmpile Apache) > --with-apxs: dynamic apache module (no need to compile Apache) > without any of them : compiled as a standalone cgi executable > > As for compiling with interbase: > --with-interbase=/opt/interbase won't create the interbase.so file, but > rather compile PHP with interbase support built into it. > > If you want the shared interbase module (.so) you should compile with: > > --with-interbase=shared,/opt/interbase > > and modify your php.ini > > I suggest you read the relevant pages in the manual. Find them at > > http://www.php.net/manual/en/install.unix.php > http://www.php.net/manual/en/install.configure.php > > -- > Meir Kriheli > > > > > steph > > > > Paul Cooper a écrit : > > > On Thu, Sep 06, 2001 at 03:38:18PM +0100, Stephane MOREL wrote: > > > > Thank you for your answer > > > > after a glance on the net I have found I need interbase.so. This is not > > > > present on my disk do you how can I retrieve it > > > > steph > > > > > > How and where did you intsall interbase - it's been a while so I forget. > > > I think the rpm version installs itself in /opt/interbase (you can check > > > with rpm -ql interbase). If that is the case then you need to configure > > > with > > > > > > ./configure --with-apxs=/path/to/apxs --with-interbase=/opt/interbase > > > --enable-track-vars > > > > > > Paul > > > > > > > Meir Kriheli a écrit : > > > > > On Thursday 06 September 2001 13:31, Stephane MOREL wrote: > > > > > > Hi all > > > > > > I'm new on PHP. I've installed PHP interbase Apache correctly. But > > > > > > I would like to connect Interbase database through PHP. So I enable > > > > > > interbase support for php by doing this : > > > > > > ./configure --with-interbase --with-apache --enabled-track-vars > > > > > > > > > > if you compile with --with-apache, you'll have to recompile apache > > > > > too. You can compile it as a shared module --with-apxs= > > > > apxs>. > > > > > > > > > > Note: you'll need Apache development stuff (Depends on your distro). > > > > > > > > > > Any way after running make install make sure you've restarted Apache. > > > > > > > > > > > make > > > > > > make install > > > > > > Evreything works fine > > > > > > When I do this : > > > > > > > > > > > $conn=ibase_connect("192.168.2.2:/opt/interbase/examples/employee.g > > > > > >db", "SYSDBA", "masterkey"); > > > > > > if (!$conn) > > > > > > { echo "Access Denied!"; > > > > > > exit; } > > > > > > ?> > > > > > > my browser say :Call to undifined function :ibase_connect. > > > > > > I understood that I must enable the extension in php.ini. I think > > > > > > the extension was automatically added to my php.ini but I can not > > > > > > find any entry in php.ini for interbase. > > > > > > If someone could help > > > > > > TIA > > > > > > > > > > > > Steph > > > > > > > > -- > > > > PHP Database Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > To contact the list administrators, e-mail: > > > > [EMAIL PROTECTED] > > > > > > -- > > > - > > > Paul Cooper | Tel: 0121 331 7858 > > > Senior Programmer and Database Engineer | Fax: 0121 331 7859 > > > UCEcom | mailto:[EMAIL PROTECTED] > > > University of Central England | http://www.ucecom.com > > > Birmingham, B4 7DX | > > > - -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] PHP linux interbase Apache
On Thursday 06 September 2001 18:47, Stephane MOREL wrote: > Thank you for your answer > Interbase is installed in /opt/interbase. I don't use --with-apxs. > What I need now is to eanble connection to interbase through PHP. > It seems to me I only need to compile PHP with the > --with-interbase=/opt/interbase to create the file interbase.so.But I guess > I'm wrong > Thank you for your help It all depends on how you install PHP (assuming you're using Apache) --with-apache : static PHP compiled into apache (needs to cmpile Apache) --with-apxs: dynamic apache module (no need to compile Apache) without any of them : compiled as a standalone cgi executable As for compiling with interbase: --with-interbase=/opt/interbase won't create the interbase.so file, but rather compile PHP with interbase support built into it. If you want the shared interbase module (.so) you should compile with: --with-interbase=shared,/opt/interbase and modify your php.ini I suggest you read the relevant pages in the manual. Find them at http://www.php.net/manual/en/install.unix.php http://www.php.net/manual/en/install.configure.php -- Meir Kriheli > > steph > > Paul Cooper a écrit : > > On Thu, Sep 06, 2001 at 03:38:18PM +0100, Stephane MOREL wrote: > > > Thank you for your answer > > > after a glance on the net I have found I need interbase.so. This is not > > > present on my disk do you how can I retrieve it > > > steph > > > > How and where did you intsall interbase - it's been a while so I forget. > > I think the rpm version installs itself in /opt/interbase (you can check > > with rpm -ql interbase). If that is the case then you need to configure > > with > > > > ./configure --with-apxs=/path/to/apxs --with-interbase=/opt/interbase > > --enable-track-vars > > > > Paul > > > > > Meir Kriheli a écrit : > > > > On Thursday 06 September 2001 13:31, Stephane MOREL wrote: > > > > > Hi all > > > > > I'm new on PHP. I've installed PHP interbase Apache correctly. But > > > > > I would like to connect Interbase database through PHP. So I enable > > > > > interbase support for php by doing this : > > > > > ./configure --with-interbase --with-apache --enabled-track-vars > > > > > > > > if you compile with --with-apache, you'll have to recompile apache > > > > too. You can compile it as a shared module --with-apxs= > > > apxs>. > > > > > > > > Note: you'll need Apache development stuff (Depends on your distro). > > > > > > > > Any way after running make install make sure you've restarted Apache. > > > > > > > > > make > > > > > make install > > > > > Evreything works fine > > > > > When I do this : > > > > > > > > > $conn=ibase_connect("192.168.2.2:/opt/interbase/examples/employee.g > > > > >db", "SYSDBA", "masterkey"); > > > > > if (!$conn) > > > > > { echo "Access Denied!"; > > > > > exit; } > > > > > ?> > > > > > my browser say :Call to undifined function :ibase_connect. > > > > > I understood that I must enable the extension in php.ini. I think > > > > > the extension was automatically added to my php.ini but I can not > > > > > find any entry in php.ini for interbase. > > > > > If someone could help > > > > > TIA > > > > > > > > > > Steph > > > > > > -- > > > PHP Database Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: > > > [EMAIL PROTECTED] > > > > -- > > - > > Paul Cooper | Tel: 0121 331 7858 > > Senior Programmer and Database Engineer | Fax: 0121 331 7859 > > UCEcom | mailto:[EMAIL PROTECTED] > > University of Central England | http://www.ucecom.com > > Birmingham, B4 7DX | > > - -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] PHP linux interbase Apache
Thank you for your answer Interbase is installed in /opt/interbase. I don't use --with-apxs. What I need now is to eanble connection to interbase through PHP. It seems to me I only need to compile PHP with the --with-interbase=/opt/interbase to create the file interbase.so.But I guess I'm wrong Thank you for your help steph Paul Cooper a écrit : > On Thu, Sep 06, 2001 at 03:38:18PM +0100, Stephane MOREL wrote: > > Thank you for your answer > > after a glance on the net I have found I need interbase.so. This is not present > > on my disk do you how can I retrieve it > > steph > > How and where did you intsall interbase - it's been a while so I forget. > I think the rpm version installs itself in /opt/interbase (you can check > with rpm -ql interbase). If that is the case then you need to configure > with > > ./configure --with-apxs=/path/to/apxs --with-interbase=/opt/interbase > --enable-track-vars > > Paul > > > Meir Kriheli a écrit : > > > > > On Thursday 06 September 2001 13:31, Stephane MOREL wrote: > > > > Hi all > > > > I'm new on PHP. I've installed PHP interbase Apache correctly. But I > > > > would like to connect Interbase database through PHP. So I enable > > > > interbase support for php by doing this : > > > > ./configure --with-interbase --with-apache --enabled-track-vars > > > > > > if you compile with --with-apache, you'll have to recompile apache too. You > > > can compile it as a shared module --with-apxs=. > > > > > > Note: you'll need Apache development stuff (Depends on your distro). > > > > > > Any way after running make install make sure you've restarted Apache. > > > > > > > make > > > > make install > > > > Evreything works fine > > > > When I do this : > > > > > > > $conn=ibase_connect("192.168.2.2:/opt/interbase/examples/employee.gdb", > > > > "SYSDBA", "masterkey"); > > > > if (!$conn) > > > > { echo "Access Denied!"; > > > > exit; } > > > > ?> > > > > my browser say :Call to undifined function :ibase_connect. > > > > I understood that I must enable the extension in php.ini. I think the > > > > extension was automatically added to my php.ini but I can not find any > > > > entry in php.ini for interbase. > > > > If someone could help > > > > TIA > > > > > > > > Steph > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > - > Paul Cooper | Tel: 0121 331 7858 > Senior Programmer and Database Engineer | Fax: 0121 331 7859 > UCEcom | mailto:[EMAIL PROTECTED] > University of Central England | http://www.ucecom.com > Birmingham, B4 7DX | > - -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] PHP linux interbase Apache
On Thu, Sep 06, 2001 at 03:38:18PM +0100, Stephane MOREL wrote: > Thank you for your answer > after a glance on the net I have found I need interbase.so. This is not present > on my disk do you how can I retrieve it > steph How and where did you intsall interbase - it's been a while so I forget. I think the rpm version installs itself in /opt/interbase (you can check with rpm -ql interbase). If that is the case then you need to configure with ./configure --with-apxs=/path/to/apxs --with-interbase=/opt/interbase --enable-track-vars Paul > Meir Kriheli a écrit : > > > On Thursday 06 September 2001 13:31, Stephane MOREL wrote: > > > Hi all > > > I'm new on PHP. I've installed PHP interbase Apache correctly. But I > > > would like to connect Interbase database through PHP. So I enable > > > interbase support for php by doing this : > > > ./configure --with-interbase --with-apache --enabled-track-vars > > > > if you compile with --with-apache, you'll have to recompile apache too. You > > can compile it as a shared module --with-apxs=. > > > > Note: you'll need Apache development stuff (Depends on your distro). > > > > Any way after running make install make sure you've restarted Apache. > > > > > make > > > make install > > > Evreything works fine > > > When I do this : > > > > > $conn=ibase_connect("192.168.2.2:/opt/interbase/examples/employee.gdb", > > > "SYSDBA", "masterkey"); > > > if (!$conn) > > > { echo "Access Denied!"; > > > exit; } > > > ?> > > > my browser say :Call to undifined function :ibase_connect. > > > I understood that I must enable the extension in php.ini. I think the > > > extension was automatically added to my php.ini but I can not find any > > > entry in php.ini for interbase. > > > If someone could help > > > TIA > > > > > > Steph > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- - Paul Cooper | Tel: 0121 331 7858 Senior Programmer and Database Engineer | Fax: 0121 331 7859 UCEcom | mailto:[EMAIL PROTECTED] University of Central England | http://www.ucecom.com Birmingham, B4 7DX | - -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] PHP linux interbase Apache
Thank you for your answer after a glance on the net I have found I need interbase.so. This is not present on my disk do you how can I retrieve it steph Meir Kriheli a écrit : > On Thursday 06 September 2001 13:31, Stephane MOREL wrote: > > Hi all > > I'm new on PHP. I've installed PHP interbase Apache correctly. But I > > would like to connect Interbase database through PHP. So I enable > > interbase support for php by doing this : > > ./configure --with-interbase --with-apache --enabled-track-vars > > if you compile with --with-apache, you'll have to recompile apache too. You > can compile it as a shared module --with-apxs=. > > Note: you'll need Apache development stuff (Depends on your distro). > > Any way after running make install make sure you've restarted Apache. > > > make > > make install > > Evreything works fine > > When I do this : > > > $conn=ibase_connect("192.168.2.2:/opt/interbase/examples/employee.gdb", > > "SYSDBA", "masterkey"); > > if (!$conn) > > { echo "Access Denied!"; > > exit; } > > ?> > > my browser say :Call to undifined function :ibase_connect. > > I understood that I must enable the extension in php.ini. I think the > > extension was automatically added to my php.ini but I can not find any > > entry in php.ini for interbase. > > If someone could help > > TIA > > > > Steph -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] PHP linux interbase Apache
On Thursday 06 September 2001 13:31, Stephane MOREL wrote: > Hi all > I'm new on PHP. I've installed PHP interbase Apache correctly. But I > would like to connect Interbase database through PHP. So I enable > interbase support for php by doing this : > ./configure --with-interbase --with-apache --enabled-track-vars if you compile with --with-apache, you'll have to recompile apache too. You can compile it as a shared module --with-apxs=. Note: you'll need Apache development stuff (Depends on your distro). Any way after running make install make sure you've restarted Apache. > make > make install > Evreything works fine > When I do this : > $conn=ibase_connect("192.168.2.2:/opt/interbase/examples/employee.gdb", > "SYSDBA", "masterkey"); > if (!$conn) > { echo "Access Denied!"; > exit; } > ?> > my browser say :Call to undifined function :ibase_connect. > I understood that I must enable the extension in php.ini. I think the > extension was automatically added to my php.ini but I can not find any > entry in php.ini for interbase. > If someone could help > TIA > > Steph -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DB] PHP linux interbase Apache
Hi all I'm new on PHP. I've installed PHP interbase Apache correctly. But I would like to connect Interbase database through PHP. So I enable interbase support for php by doing this : ./configure --with-interbase --with-apache --enabled-track-vars make make install Evreything works fine When I do this : my browser say :Call to undifined function :ibase_connect. I understood that I must enable the extension in php.ini. I think the extension was automatically added to my php.ini but I can not find any entry in php.ini for interbase. If someone could help TIA Steph -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]