[python-sybase] php scirpt returning error with OCS-15_0

Mr. Dan bitsandbytes88 at hotmail.com
Sat Jun 24 04:51:42 EST 2006


Hi,

We are running SLES 9.3 with AMD64.
I'm getting these errrors, after try to make a simple connection to sybase 
followed by a simple query that works fine with perl code or going in with 
isql.  There is some problem with the way php 5.1.4 is compiling here.  My 
confiure scirpt is below.  Leaving out the clfags and DSYB_LB64 doesn't 
improve these results.   I can't find any posts on this error message, so if 
any one has a clue my php 5.1.4 wouldn't work with the OCS-15_0 or this is 
some other problem....Please share.  I can get rid of the utf8 errors with 
export LANG=en_US, so that's not a problem, but the script isn't pulling the 
relsult off the database, even though these are just warnings.

Thanks,
~DjK


## the php script

$link = sybase_connect('xxx5003', 'xxx_user', 'xxx')
       or die("Could not connect !");
echo "Connected successfully\
n";

sybase_select_db('systems',$link)
or die ("Could net set database to systems!");
echo "DB selected successfully\n";

sybase_close($link);
?>

## the output

arning:  sybase_connect(): Sybase:  Server message:  base context to 
'systems'.
(severity 543450471, procedure ) in /prj/web/www123/htdocs/josh.php on line 
2
PHP Warning:  sybase_connect(): Sybase:  Server message:  the requested 
character set in Syscharsets:  name = 'utf8'.
(severity 1713402991, procedure ) in /prj/web/www123/htdocs/josh.php on line 
2
PHP Warning:  sybase_connect(): Sybase:  Server message:  ns will be done.
(severity 1702260335, procedure ) in /prj/web/www123/htdocs/josh.php on line 
2
PHP Warning:  sybase_connect(): Sybase:  Server message:  base context to 
'systems'.
(severity 543450471, procedure ) in /prj/web/www123/htdocs/josh.php on line 
2
Connected successfully
PHP Warning:  sybase_select_db(): Sybase:  Server message:  base context to 
'systems'.
(severity 543450471, procedure ) in /prj/web/www123/htdocs/josh.php on line 
6
Could net set database to systems!


## the configuration

:/usr/local/src/php-5.1.4> CFLAGS="${CFLAGS} -g -DSYB_LP64" ./configure 
--prefix=/usr/local/php-5.1.4/ --with-apxs2=/usr/local/apache-2.2.0/bin/apxs 
--with-libxml-dir=/usr/local --without-mysql --without-sqlite 
--with-pgsql=/usr/local/pgsql.production/ 
--with-sybase-ct=/usr/local/sybase.production/OCS-15_0/




More information about the Python-sybase mailing list