クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
コミュニティ コンテンツ
このセクションの内容
すべて縮小/すべて展開 すべて縮小

We were unable to locate this content in ja-jp.

Here is the same content in en-us.

SQL Server Driver for PHP Version 1.0 and Version 1.1
Loading the SQL Server Driver for PHP

This topic provides instructions for loading the SQL Server Driver for PHP into the PHP process space.

There are two options for loading the driver. The driver can be loaded when PHP is started or it can be loaded at script runtime.

Regardless of which procedure you use, the first step will be to put the driver file in a directory where the PHP runtime can find it. So, put the driver file in your PHP extension directory. See System Requirements for a list of the driver files that are installed with the SQL Server Driver for PHP.

If necessary, specify the directory location of the driver file in the PHP configuration file (php.ini), using the extension_dir option. For example, if you will put the driver file in your c:\php\ext directory, use this option:

extension_dir = "c:\PHP\ext"

To load the SQL Server Driver for PHP when PHP is started, first move the driver file into your extension directory. Then, follow these steps:

  1. Modify php.ini by adding the following line to the extension section, or modifying the line that is already there (this example uses the version 1.0 thread safe driver):
    extension=php_sqlsrv_ts.dll
  2. Restart the Web server.
Cc296203.note(en-US,SQL.90).gifNote:
To determine whether the extension has been successfully loaded, run a script that calls phpinfo ( ).

For more information about php.ini directives, see Description of core php.ini directives.

To load the SQL Server Driver for PHP at script runtime, first move the driver file into your extension directory. Then include the following line at the start of the PHP script that will use the extension:

dl('php_sqlsrv_ts.dll');

For more information about PHP functions related to dynamically loading extensions, see dl and extension_loaded .

コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2009 Microsoft Corporation. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker