Windows サーバーと Linux サーバーがあります。SQL Server 2005 が Windows マシンにインストールされており、PHP を使用して他の Linux サーバーから Windows データベースに接続したいと考えています。サーバーはさまざまな場所にあります。
私はすべてを試しましたが、成功しませんでした。これが私のphpinfo出力です:
Configure Command './configure' '--with-apxs2' '--with-curl=/usr/local/lib' '--with-gd' '--with-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-pdo-mysql=/usr' '--with-unixODBC=/usr' '--with-pcre-regex=/usr/local' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xsl' '--with-mssql=/usr/local/freetds' '--with-pdo-dblib=/usr/local' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-magic-quotes' '--enable-safe-mode' '--enable-soap' '--enable-sockets' '--enable-mbstring' '--enable-zip' '--enable-wddx'
ODBC サポート、dblib、Mssql が有効になっています。
Windows マシンにはファイアウォールがありません。モデムから 1433 ポートを転送しました。Windows sql studio から、自分のマシン (ローカル) の WAMP から接続できますが、PHP からは接続できません:(
助言がありますか?