[PHP-DB] sybase_connect(): Sybae:Unable to allocate connection record
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 attempting to run code. I have done this before on RHEL3 and did not run into this problem. The server is running fine and I can use isql from this server and connect to SYBASESR %configure \ --cache-file=../config.cache \ --with-config-file-path=%{_sysconfdir} \ --with-config-file-scan-dir=%{_sysconfdir}/php.d \ --enable-force-cgi-redirect \ --disable-debug \ --enable-pic \ --disable-rpath \ --enable-inline-optimization \ --with-bz2 \ --with-db4=%{_prefix} \ --with-curl \ --with-exec-dir=%{_bindir} \ --with-freetype-dir=%{_prefix} \ --with-png-dir=%{_prefix} \ --with-gd=shared \ --enable-gd-native-ttf \ --without-gdbm \ --with-gettext \ --with-ncurses=shared \ --with-gmp \ --with-iconv \ --with-jpeg-dir=%{_prefix} \ --with-openssl \ --with-png \ --with-pspell \ --with-xml \ --with-expat-dir=%{_prefix} \ --with-dom=shared,%{_prefix} \ --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \ --with-xmlrpc=shared \ --with-pcre-regex=%{_prefix} \ --with-zlib \ --with-layout=GNU \ --enable-bcmath \ --enable-exif \ --enable-ftp \ --enable-magic-quotes \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-track-vars \ --enable-trans-sid \ --enable-yp \ --enable-wddx \ --with-pear=/usr/share/pear \ --with-imap=shared --with-imap-ssl \ --with-kerberos \ --with-ldap=shared \ --with-mysql=shared,%{_prefix} \ %{?_with_oci8:--with-oci8-instant-client=shared} \ %{?_with_mssql:--with-mssql=shared} \ %{?_with_mhash:--with-mhash=shared} \ --with-pgsql=shared \ --with-snmp=shared,%{_prefix} \ --with-snmp=shared \ --enable-ucd-snmp-hack \ --with-unixODBC=shared,%{_prefix} \ --with-sybase-ct=/opt/sybase/OCS-12_5 \ --enable-memory-limit \ --enable-shmop \ --enable-calendar \ --enable-dbx \ --enable-dio \ --enable-mbstring=shared --enable-mbstr-enc-trans \ --enable-mbregex \ --with-mime-magic=%{_datadir}/file/magic.mime \ $* || tail -300 config.log script: $server=SYBASESR; $user=sa; $pass=; $con =sybase_connect($server,$user, $pass); -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] sybase_connect(): Sybase: Unable to allocate connection record problem
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(): Sybase: Unable to allocate connection record in /usr/local/apache2/htdocs/test.php on line 3 I search all the internet, don't find the reason and the solution. Help, Help me. Thanks a lot. Samuel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Sybase_Connect
Now I get a pop up that says: Unknown(): Unable to load dynamic library 'F:\PHP\extensions\php_sybase_ct.dll' = The specified module could not be found. I've looked for spelling errors multiple time and I am absolutly 100% positive that the file is located with in that directory and is named 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 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 Cameron Powell wrote: 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); echo sybase_result($qry, 1, 1); sybase_close($con); ? Heres the error: Fatal error: Call to undefined function: sybase_connect() in F:\Program Files\Apache Group\Apache\htdocs\index.php on line 8 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Life is half spent before we know what it is -unknown -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Sybase_Connect
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); echo sybase_result($qry, 1, 1); sybase_close($con); ? Heres the error: Fatal error: Call to undefined function: sybase_connect() in F:\Program Files\Apache Group\Apache\htdocs\index.php on line 8 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Sybase_Connect
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 Cameron Powell wrote: 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); echo sybase_result($qry, 1, 1); sybase_close($con); ? Heres the error: Fatal error: Call to undefined function: sybase_connect() in F:\Program Files\Apache Group\Apache\htdocs\index.php on line 8 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Life is half spent before we know what it is -unknown -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php