470,855 Members | 1,309 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

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_sybase_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.dll is in the same dir as the other DLLs (c:\php) and
Sybase is in c:\programs\sybase...
What can I do?
Thanks
Jul 17 '05 #1
3 5076
Luke wrote:
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.dll is in the same dir as the other DLLs (c:\php) and
Sybase is in c:\programs\sybase...
What can I do?


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

Jul 17 '05 #2
Luke wrote:
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_sybase_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.dll is in the same dir as the other DLLs (c:\php) and
Sybase is in c:\programs\sybase...
What can I do?
Thanks


Add the sybase directory to your PATH environment variable.

Berislav
Jul 17 '05 #3
On Sun, 1 Aug 2004 00:34:34 +0200, "Berislav Lopac"
<be************@zg.htnet.hr> wrote:
Add the sybase directory to your PATH environment variable.


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

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\Programs\Sybase\SQL
Anywhere
8\win32;C:\Programs\Sybase\Shared\win32;C:\Program s\Sybase\Shared\Sybase
Central 4.1

but nothing changes :-/ The same error... is there a way to know
exactly which DLLs the php_sybase_ct.dll needs?
Thanks again!
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mike Walsh | last post: by
18 posts views Thread by David Rysdam | last post: by
1 post views Thread by Wellingotn Rampazo | last post: by
4 posts views Thread by Chris Fox via .NET 247 | last post: by
1 post views Thread by xinhuanet.com | last post: by
2 posts views Thread by Martin Lukasik | last post: by
2 posts views Thread by Sean | last post: by
reply views Thread by =?ISO-8859-1?Q?S=E9bastien_Sabl=E9?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.