In its continued commitment to interoperability with PHP, the SQL Server Driver for PHP is designed to enable reliable, scalable integration with SQL Server for PHP applications deployed on the Windows platform. The driver is a PHP 5 extension that allows the reading and writing of SQL Server data from within PHP scripts. It provides interfaces for accessing data in all editions of SQL Server starting from SQL Server 2005 (including Express Editions) as well as SQL Azure. It makes use of PHP features, including PHP streams to read and write large objects. With this release, the source code for the driver is available at: http://sqlsrvphp.codeplex.com.
The SQL Server Driver for PHP relies on the Microsoft SQL Server Native Client to communicate with SQL Server. For more information about SQL Server Native Client, visit the SQL Server Native Client page on MSDN.
The SQL Server Driver for PHP is documented on our MSDN site including a simple yet complete example application.
Download the latest release of the PHP drivers, the PDO_SQLSRV and SQLSRV drivers, to use to Microsoft SQL Server as the data storage engine for PHP applications. The PDO_SQLSRV driver supports PHPâs PDO specification, while the SQLSRV driver provides a procedural interface. These drivers use the SQL Server 2008 R2 Native Access Client library to connect to all editions of Microsoft SQL Server 2005 and later, as well as SQL Azure.
We have published the source code for both drivers on our CodePlex project site. At this time we are releasing the source code under the Apache 2.0 license. In continuation with our previous policy, Microsoft supports only the Microsoft signed versions of the drivers.
Download the SQL Server Driver for PHP version 1.1 released in October 2009. This PHP extension provides a procedural interface for accessing data in all editions of SQL Server 2005, 2008, 2008 R2, and SQL Azure. This release is ready for production use and officially supported by Microsoft.
With the release of a newer version, we will discontinue offering this version after November 2010.