Sybase connection

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Luke

    Sybase connection

    Hello!
    This is the first time I need to connect via PHP to a Sybase DB.
    I'm working with PHP5 and Apache 2 under WinXP... no problem
    connecting with Mysql...
    I enabled in php.ini the correct dll: "php_sybase_ct. dll" but when I
    restart Apache got this error:

    PHP Startup: Unable to load dynamic library 'c:\php\php_syb ase_ct.dll'
    - Can't find the specified module

    I read that the library needs Sybase DLL: on my PC I installed the
    whole Sybase SQL Studio 8 (it works fine) but no result... the
    php_sybase_ct.d ll is in the same dir as the other DLLs (c:\php) and
    Sybase is in c:\programs\syb ase...
    What can I do?
    Thanks
  • Janwillem Borleffs

    #2
    Re: Sybase connection

    Luke wrote:[color=blue]
    > I read that the library needs Sybase DLL: on my PC I installed the
    > whole Sybase SQL Studio 8 (it works fine) but no result... the
    > php_sybase_ct.d ll is in the same dir as the other DLLs (c:\php) and
    > Sybase is in c:\programs\syb ase...
    > What can I do?[/color]

    Locate the Sybase dll and copy it to the system32 dir of your WINDOWS/WINNT
    directory.

    When this doesn't work try registering the dll, e.g. with:

    regsvr32 sybase.dll


    JW



    Comment

    • Berislav Lopac

      #3
      Re: Sybase connection

      Luke wrote:[color=blue]
      > Hello!
      > This is the first time I need to connect via PHP to a Sybase DB.
      > I'm working with PHP5 and Apache 2 under WinXP... no problem
      > connecting with Mysql...
      > I enabled in php.ini the correct dll: "php_sybase_ct. dll" but when I
      > restart Apache got this error:
      >
      > PHP Startup: Unable to load dynamic library 'c:\php\php_syb ase_ct.dll'
      > - Can't find the specified module
      >
      > I read that the library needs Sybase DLL: on my PC I installed the
      > whole Sybase SQL Studio 8 (it works fine) but no result... the
      > php_sybase_ct.d ll is in the same dir as the other DLLs (c:\php) and
      > Sybase is in c:\programs\syb ase...
      > What can I do?
      > Thanks[/color]

      Add the sybase directory to your PATH environment variable.

      Berislav


      Comment

      • Luke

        #4
        Re: Sybase connection

        On Sun, 1 Aug 2004 00:34:34 +0200, "Berislav Lopac"
        <berislav.lopac @zg.htnet.hr> wrote:
        [color=blue]
        >Add the sybase directory to your PATH environment variable.[/color]

        Thanks for you reply...
        I tried... my path is:

        %SystemRoot%\sy stem32;%SystemR oot%;%SystemRoo t%\System32\Wbe m;C:\Programs\S ybase\SQL
        Anywhere
        8\win32;C:\Prog rams\Sybase\Sha red\win32;C:\Pr ograms\Sybase\S hared\Sybase
        Central 4.1

        but nothing changes :-/ The same error... is there a way to know
        exactly which DLLs the php_sybase_ct.d ll needs?
        Thanks again!

        Comment

        Working...