After installing php-4.3.9-3.6.src.rpm on RHEL4 I modified the php.spec
file to
add --with-sybase-ct=/opt/sybase/OCS-12_5
Everything appeared to compile fine but after update installing the
rpms I get the error
'Warning: sybase_connect(): Sybase:Unable to allocate connection
record.'
when
Dear friends,
I installed sybase 12.5 develop edition, apache 2.0.48 and php 4.3.4 on
the same server, the php testing is no problem.
But i use function sybase_connect() in program test.php, open the file
in IE, error messages :
Warning: sybase_connect():
exactly as it is up above
AHH!!! WHAT DO I DO!?
- Original Message -
From: Buics [EMAIL PROTECTED]
To: Cameron Powell [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, January 20, 2003 5:52 PM
Subject: Re: [PHP-DB] Sybase_Connect
try to look at your php.ini file, then uncomment
Im trying to figure out Sybase and I cant even seem to get past the first
step of connecting
Heres my code:
?php
$con = sybase_connect(localhost, EXP, SQL);
sybase_select_db(EXPADMIN);
$qry = sybase_query(select * from EXP.access, $con);
try to look at your php.ini file, then uncomment this line
extension=php_sybase_ct.dll
and also make sure that you setup your extension directory.
; Directory in which the loadable extensions (modules) reside.
extension_dir = c:\php\
after that, restart your web server.
best regards
--buics