odbc ODBC Support enabled Active Persistent Links 0 Active Links 0 ODBC library Win32 Directive Local Value Master Value odbc.allow_persistent On On odbc.check_persistent On On odbc.default_db no value no value odbc.default_pw no value no value odbc.default_user no value no value odbc.defaultbinmode return as is return as is odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes odbc.max_links Unlimited Unlimited odbc.max_persistent Unlimited Unlimited
Build Date Dec 3 2008 12:20:12
Configure Command cscript /nologo configure.js "--enable-prefix=d:\tmp\b.core-php-nts.5.2.6.4460\core-php-nts-5.2.6\php-5.2.6\.." "--with-openssl=d:\tmp\b.core-php-nts.5.2.6.4460\core-php-nts-5.2.6\php-5.2.6\.." "--with-extra-includes=d:\tmp\b.core-php-nts.5.2.6.4460\core-php-nts-5.2.6\php-5.2.6\..\usr\include" "--with-extra-libs=d:\tmp\b.core-php-nts.5.2.6.4460\core-php-nts-5.2.6\php-5.2.6\..\usr\lib" "--disable-ipv6" "--disable-bcmath" "--disable-calendar" "--disable-ftp" "--without-gd" "--disable-odbc" "--without-sqlite" "--disable-tokenizer" "--with-libxml" "--with-iconv" "--disable-force-cgi-redirect" "--enable-fastcgi" "--enable-cli-win32" "--enable-pdo" "--disable-zts" "--disable-xmlwriter" "--enable-memory-limit"
dbc_connect("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . str_replace("/", "\\", $_SERVER["DOCUMENT_ROOT"]) . "\_database\dbname.mdb", "", "")
<?
$sn= 'DRIVER={SQL Server};SERVER=local;DATABASE=fsmi3';
$con=odbc_connect($sn, "sa", "");//3saccessao
$access_sql=" select * from tb_teller ;";
$result=odbc_exec($con,$access_sql);//odbc(access)¢Xe¢DX?d¡Msao?u¢DO
while($re=odbc_fetch_row($result))
{
echo "NO_HEAD=".$re[0];
echo "SEQ_NO=".$re[1];
echo "PDATE=".$re[2];
echo "<BR>";
}?>
ODBC Support enabled
Active Persistent Links 0
Active Links 0
ODBC library Win32 Directive Local Value Master Value
odbc.allow_persistent On On
odbc.check_persistent On On
odbc.default_db no value no value
odbc.default_pw no value no value
odbc.default_user no value no value
odbc.defaultbinmode return as is return as is
odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes
odbc.max_links Unlimited Unlimited
odbc.max_persistent Unlimited Unlimited
方法基本如下:比如加载mssql扩展 1.打开php.in将extension=php_mssql.dll的注释符号;去掉。
2.将php_mssql.dll拷贝到php.in中extension_dir 指定的目录或者系统system32目录下。其他扩展类似。。
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.