note 76954 added to ref.sybase
| From: | jeffersonmfs at hotmail dot com | Date: | Wed, 08 Aug 2007 00:52:23 +0000 |
| Subject: | note 76954 added to ref.sybase | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129266@lists.php.net to get a copy of this message | ||
PHP and Sybase 15
# cat /opt/sybase/SYBASE.sh >> /etc/profile
# exit
Make new logon
# vi /var/build/php-5.2.3/ext/sybase_ct/php_sybase_ct.h
change this line ...
#define CTLIB_VERSION CS_VERSION_100
...to...
#define CTLIB_VERSION CS_VERSION_150
# ln -sd /opt/sybase /home/sybase
# cp /opt/sybase/OCS-15_0/lib/libsybcomn.a /opt/sybase/OCS-15_0/lib/libcomn.a
# cp /opt/sybase/OCS-15_0/lib/libsybcs.a /opt/sybase/OCS-15_0/lib/libs.a
# cp /opt/sybase/OCS-15_0/lib/libsybct.a /opt/sybase/OCS-15_0/lib/libct.a
# cp /opt/sybase/OCS-15_0/lib/libsybintl.a /opt/sybase/OCS-15_0/lib/libintl.a
The new file /etc/ld.so.conf.d/sybase it must have the line
/opt/sybase/OCS-15_0/lib
# ldconfig
BUILD PHP
# ./configure --with-apxs2=/usr/sbin/apxs --with-config-file-path=/etc/
--with-sybase-ct=/opt/sybase/OCS-15_0
# make
# make install
# cp php.ini-dist /etc/php.ini
Change display_erros=On to display_erros=Off
Edit Apache's httpd.conf file to associate .php files with a MIME type:
#
# PHP script support
#
AddType application/x-httpd-php .php
----
Server IP: 200.185.109.13
Probable Submitter: 201.17.160.1
----
Manual Page -- http://www.php.net/manual/en/ref.sybase.php
Edit -- https://master.php.net/note/edit/76954
Del: integrated -- https://master.php.net/note/delete/76954/integrated
Del: useless -- https://master.php.net/note/delete/76954/useless
Del: bad code -- https://master.php.net/note/delete/76954/bad+code
Del: spam -- https://master.php.net/note/delete/76954/spam
Del: non-english -- https://master.php.net/note/delete/76954/non-english
Del: in docs -- https://master.php.net/note/delete/76954/in+docs
Del: other reasons-- https://master.php.net/note/delete/76954
Reject -- https://master.php.net/note/reject/76954
Search -- https://master.php.net/manage/user-notes.php