News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brian Swan's Blog:
Using the Zend Framework and the PDO_SQLSRV Driver
January 21, 2011 @ 12:52:20

Brian Swan has a new tutorial posted to his MSDN blog today looking at how to use the Zend Framework with the PDO_SQLSRV driver to connect your applications to a SQL Server database.

A couple of months ago, Rob Allen pointed out in a blog post that no Zend Framework PDO adapter existed for SQL Server. But, he also noted that it would be easy to write one...so he did: https://github.com/akrabat/Akrabat/blob/master/zf1/Akrabat/Db/Adapter/Pdo/Sqlsrv.php. Rob also mentioned that it would be very easy to use his adapter with the Zend Framework, but I wondered just how easy - that's what I'll investigate in this post. (Cut to the chase: it is very easy.)

Brian takes the long way around for those that want the details. He talks about setting up Zend_Tool for Windows, setting up the Zend Framework tutorial and creating the application. This includes setting up the Apache rewrite rules (mod_rewrite), adding in the database information to your application.ini file and creating a basic table on the SQL Server database to connect to (based on SQL included with the tutorial).

0 comments voice your opinion now!
zendframework pdosqlsrv driver tutorial


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: PHP Streaming and Output Buffering Explained

Jose de Silva's Blog: Speeding up your application with Cache_Lite

Zend Framework By Examples: Handling dates and times (Zend_Date)

Rob Allen: Registering Doctrine Type Mappings for standalone migrations

NetTuts.com: Reflection in PHP


Community Events

Don't see your event here?
Let us know!


framework symfony series extension interview threedevsandamaybe voicesoftheelephpant release library language version opinion laravel5 security unittest api introduction podcast community laravel

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework