Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Interbase module for PHP

  • 20-03-2002 9:36pm
    #1
    Registered Users, Registered Users 2 Posts: 14,156 ✭✭✭✭


    Hey guys,

    does anyone have, ior know where I can download, the interbase_so (??) module for PHP??

    Oh and before I forget ... the webserver shall be running on an RH 7.2 box

    / me looks in dahamsta and typedefs general direction :D


Comments

  • Registered Users, Registered Users 2 Posts: 1,862 ✭✭✭flamegrill


    /me wonders if it should have been added at compile time.

    Dump RH.


  • Registered Users, Registered Users 2 Posts: 1,862 ✭✭✭flamegrill


    /me wonders if it should have been added at compile time. that is at the configure stage of php, youh should have added
    --with-interbase or something similar.

    Dump RH.


  • Closed Accounts Posts: 3,859 ✭✭✭logic1


    ./configure --with-interbase=/opt/interbase --with-apxs

    Make sure you give the right InterBase root directory as option. (/opt/interbase here)
    Then issue:


    make
    make install

    When installing is finished, open the php.ini configuration file (located in /usr/local/lib/), and check if these lines exist (uncomment/modify them if necessary):


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

    .logic.


  • Registered Users, Registered Users 2 Posts: 14,156 ✭✭✭✭Lemming


    Okk .. cheers for the replies lads.

    The Interbase database is actually on another machine, so the machine which is running apache+php4 doesn't have it installed as such.

    here's the debug.log from my attempted build of php

    CONFIGURE: './configure' '--with-interbase' '--with-apxs'
    CC: gcc
    CFLAGS: -g -O2
    CPPFLAGS: -DLINUX=22 -DEAPI -DEAPI_MM -DUSE_EXPAT -DEAPI_MM_CORE_PATH=/var/run/httpd.mm
    CXX:
    CXXFLAGS:
    INCLUDES: -I/usr/include/apache -I$(top_builddir)/Zend -I/usr/interbase/include -I/home/jamesg/php-4.1.2/ext/mysql/libmysql
    LDFLAGS: -Wl,-rpath,/usr/interbase/lib -L/usr/interbase/lib
    LIBS: -lgds -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt
    DLIBS:
    SAPI: apache
    PHP_RPATHS: /usr/interbase/lib
    uname -a: Linux LINUXTESTBOX 2.4.7-10 #1 Thu Sep 6 17:21:28 EDT 2001 i586 unknown

    gcc -o conftest -g -O2 -DLINUX=22 -DEAPI -DEAPI_MM -DUSE_EXPAT -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -Wl,-rpath,/usr/interbase/lib -L/usr/interbase/lib conftest.c -lgds -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt 1>&5
    /usr/bin/ld: cannot find -lgds
    collect2: ld returned 1 exit status

    At the moment I'm just trying to get it runnign with interbase support (since this is a test box) to test some php scripts I've written (which NEED to interact with an Interbase Server)


  • Registered Users, Registered Users 2 Posts: 1,862 ✭✭✭flamegrill


    You will need to have the interbase software compiled on your system to be able to compile php with the module. it doesnt just link to it, or have default support, it neads to know where the librarys are in order for it to work. so on the conifure line do what logic said. --with-interbase=/usr/interbase/lib or whereever they are.


  • Advertisement
  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    If you don't want to install Interbase on that machine, and the other machine is running the same platform and OS (and Apache), just compile and make PHP on that machine, but don't install. Compile it --with-interbase=shared,/path/to/libs, and when make is done the interbase module (interbase.so) will be in the /modules directory under the PHP source tree. Copy this and load it via php.ini.

    adam


  • Registered Users, Registered Users 2 Posts: 1,862 ✭✭✭flamegrill


    i found this, i think it may do what you need.

    http://php.weblogs.com/ADODB/ download it.

    it supports interbase and provides you with an ODBC layer to connect to the other machine, *hopefully*

    hope it helps, iv only just downloaded it, ill get back to you if i find it of great use :)


Advertisement