PHP连接到MS SQL

时间:2012-08-01 19:59:57

标签: php sql-server linux pdo

我正在运行配置为:

的PHP 5.3.3版的Red Hat Enterprise Linux 5(64位)
'./configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' '--disable-phar' '--disable-fileinfo' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem'

我想(需要)连接到另一台服务器上的MS SQL数据库。我已经尝试过使用mssql_connect但是在'...

中调用'未定义的函数mssql_connect()

我正在使用Zend DB框架进行MySQL连接,并且想要使用它,我累了'adapter' => 'pdo_dblib''adapter' => 'pdo_mssql',但只是得到有关未安装驱动程序的错误。

'/usr/lib64/php/modules'我有:

curl.so, dom.so, fileinfo.so, gd.so, json.so, mbstring.so, mysqli.so, mysql.so, pdo.so, pdo_sqlite.so, phar.so, sqlite3.so, wddx.so, xmlreader.so, xmlwriter.so, xsl.so, zip.so

有人可以给我一些建议吗?我尽力找到答案,似乎是“启用此扩展程序”......那些不存在的答案!

我有一种感觉,我需要使用Yum下载一些文件并更改我的回购。

非常感谢, 大卫

0 个答案:

没有答案
相关问题