The SQLSRV extension allows you to access Microsoft SQL Server and SQL Azure databases. The release of the driver supports SQL Server, beginning with SQL Server , including SQL Server and SQL Server LocalDB. (For more information about LocalDB, see» PHP Driver for SQL Server Support for LocalDB and» SQL Server Express. The php-sqlsrv package contains the Microsoft Drivers for PHP for SQL Server are PHP extensions that allow for the reading and writing of SQL Server data from within PHP scripts. The SQLSRV extension provides a procedural interface while the PDO_SQLSRV extension implements PDO for accessing data in all editions of SQL Server R2 and later.
Installation. The PDO_SQLSRV extension is enabled by adding appropriate DLL file to your PHP extension directory and the corresponding entry to the bltadwin.ru file. The PDO_SQLSRV download comes with 8 driver files, four of which are for PDO support. The most recent version of the driver is available for download here:» SQLSRV download. Perform the following steps to download and install the Microsoft Drivers for PHP for SQL Server: 1. Download SQLSRVEXE to a temporary directory 2. Run SQLSRVEXE 3. When prompted, enter the path to the PHP extensions directory 4. After extracting the files, read the Installation section of the SQLSRV_bltadwin.ru file for next steps For Linux, follow the instructions at PHP Linux and Mac. 1. Download SQLSRVEXE to a temporary directory. 2. Run SQLSRVEXE. 3. When prompted, enter the path to the PHP extensions directory. 4. After extracting the files, read the Installation section of the SQLSRV_bltadwin.ru file for next steps. For Linux, follow the instructions at PHP Linux and Mac Drivers Installation Tutorial.
The Microsoft Drivers for PHP for SQL Server are PHP extensions that allow for the reading and writing of SQL Server data from within PHP scripts. The SQLSRV extension provides a procedural interface while the PDO_SQLSRV extension implements PDO for accessing data in all editions of SQL Server R2 and later. Final: copy them to your /php/ext folder and edit bltadwin.ru with those 2 files name. // example with my case extension=php_pdo_sqlsrv_72_ts_x86 extension=php_sqlsrv_72_ts_x Then save bltadwin.ru file and then restart your server. Test your result by looking at bltadwin.ru, which MUST has pdo_sqlsrv in the page. For example, php_sqlsrv_73_ts_xdll is the bit SQLSRV driver for thread-safe (ts) PHP Download and install the Microsoft ODBC Driver for SQL Server from the appropriate link on the ODBC download page. Edit your bltadwin.ru file to add the following lines in the Extensions section: Extension=php_bltadwin.ru
0コメント