Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005

    Unanswered: sybase & php ...

    Hi all,

    I would like to add a sybase module on my PHP Version 4.3.8
    with a test I can see :

    Extensions listed here are (or will be soon) available as external modules. To install one or all of these, use "urpmi" php-EXTENSION_NAME

    mysql pgsql sqlite gd imap ldap bcmath bz2 calendar cpdf crack curl cyrus db dba dba_bundle dbase dbx dio domxml exif fbsql fdf filepro fribidi gmp hwapi hyperwave iconv imagick informix ingres_ii interbase ircg java mbstring mcal mcrypt mcve mhash mime_magic ming mnogosearch msession msql mssql ncurses notes oci8 odbc oracle overload ovrimos pam_auth pcntl pdf pfpro pspell qtdom readline recode rrdtool shmop snmp smbauth sockets swf sybase sybase_ct sysvmsg tokenizer wddx xml xmlrpc xslt yaz zip adodb mmcache apd cybercash cybermut mono mqseries netools python spplus spread inifile

    but when i try : urpmi php-sybase
    I have a return : pas de paquetage nommé php-sybase
    no package.


    When i look on : /usr/src/php-devel/extensions/sybase

    229303 4,0K drwxr-xr-x 2 root root 4,0K sep 29 15:06 ./
    183434 4,0K drwxr-xr-x 86 root root 4,0K sep 29 15:06 ../
    229305 4,0K -rwx--x--x 1 root root 1,1K jui 30 2004 config.m4*
    229304 4,0K -rw-r--r-- 1 root root 23 jui 30 2004 CREDITS
    229306 44K -rw-r--r-- 1 root root 43K jui 30 2004 php_sybase_db.c
    229307 4,0K -rw-r--r-- 1 root root 3,0K jui 30 2004 php_sybase_db.h

    but where I can find the configure file ?


    I have a mandrake 10.1.

    Can someone help me ?

    Many thanks

  2. #2
    Join Date
    Sep 2005
    France, Paris

    Hello !

    Hello titou89,

    In configuration file that you modify before php compilation, --with-sybase[=DIR], replace [=DIR] with the value of $SYBASE or $SYBASE/$SYBASE_OCS (for ASE v12.x) or $SYBASE/lib (for ASE 11.x).

    Sorry if I'm mistaken, because I have set up sybase with php only few times in the past, and it was a long time ago

    If I remember correctly, there was something with variable $LD_LIBRARY_PATH as well, that should probably setup somewhere...

    Sorry , but I hope it can help...

    I suggest you to use "--with-sybase_ct" instead of "--with-sybase".
    "--with-sybase_ct" will use the ctlib, indeed dblib is obsolete.

    Don't forget php.ini file, values here are suggestions only, depends what you need:

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

    ; Allow or prevent persistent links.
    sybct.allow_persistent = Off

    ; Maximum number of persistent links. -1 means no limit.
    sybct.max_persistent = 0

    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    ;sybct.max_links = -1

    ; Minimum server message severity to display.
    sybct.min_server_severity = 20

    ; Minimum client message severity to display.
    sybct.min_client_severity = 20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts