<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 14:12:56 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Brian Swan's Blog: What SQL Server 2012 Means for PHP Developers]]></title>
      <guid>http://www.phpdeveloper.org/news/17666</guid>
      <link>http://www.phpdeveloper.org/news/17666</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> (of Microsoft) has a new post to his blog talking about <a href="http://blogs.msdn.com/b/brian_swan/archive/2012/03/12/what-sql-server-2012-means-for-php-developers.aspx">what SQL Server 2012 means for PHP developers</a> - what the latest version of this MS database has to offer and how to get a basic install up and working in your environment.
</p>
<blockquote>
Last week, Microsoft held a <a href="http://www.sqlserverlaunch.com/ww/Home">virtual conference</a> to announce the availability of SQL Server 2012. The conference included a number of events (speakers, videos, training activities, etc.) that focused on the <a href="http://msdn.microsoft.com/en-us/library/bb500435(SQL.110).aspx">new functionality available in this release</a>. Now that most of the fanfare has died down a bit, I'd like to take a look at what some of that new functionality means for PHP developers. Combined with the <a href="http://blogs.msdn.com/b/sqlphp/archive/2012/03/07/microsoft-drivers-3-0-for-php-for-sql-server-released-to-web.aspx">release of the Microsoft Driver for SQL Server for PHP</a>, I think the SQL Server 2012 release makes some big improvements in developing PHP/SQL Server applications.
</blockquote>
<p>
He includes instructions on getting the latest version set up with the <a href="http://blogs.msdn.com/b/sqlexpress/archive/2011/07/12/introducing-localdb-a-better-sql-express.aspx">SQL Server Express LocalDB</a> (and <a href="http://www.microsoft.com/download/en/details.aspx?id=29065">command line tools</a>). He mentions only a few of the new things this latest version has to offer - easier pagination with OFFSET/FETCH NEXT, client-side cursors and other things like "AlwaysOn Connectivity" and the PDO::ATTR_EMULATE_PREPARES constant.
</p>]]></description>
      <pubDate>Tue, 13 Mar 2012 11:46:47 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Ariz Jacinto's Blog: Compiling PHP with MSSQL Server's Native ODBC Driver for Linux as a PDO Driver]]></title>
      <guid>http://www.phpdeveloper.org/news/17372</guid>
      <link>http://www.phpdeveloper.org/news/17372</link>
      <description><![CDATA[<p>
<i>Ariz Jacinto</i> has written up <a href="http://blog.acjacinto.com/2011/11/compiling-php-with-mssql-servers-native.html">a new post</a> with the commands you'll need to get PHP up and runnign with MSSQL Server's native ODBC driver working on linux (accessible through PDO).
</p>
<blockquote>
Last month, MS announced the preview release of <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/10/13/microsoft-announces-sql-server-odbc-driver-for-linux.aspx">SQL Server ODBC Driver for Linux</a>, a 64-bit binary driver for Red Hat Enterprise Linux 5. This is good news for companies using heterogenous platforms e.g. LAMP stack running a PHP application that connects to both MySQL and MSSQL Server. Meaning, these companies no longer have to use third-party drivers such as <a href="http://www.freetds.org/">FreeTDS</a> that MS doesn't support. Then a few days ago, MS <a href="http://www.microsoft.com/download/en/details.aspx?id=28160">released version 1 of the driver</a>. I immediately downloaded the driver and recompiled PHP with it as a PDO  (PHP Data Object) ODBC driver.
</blockquote>
<p>
His process has five steps to it, including one for making a test script (code included) and another with a few gotchas/performance considerations to keep an eye out for when using the driver.
</p>]]></description>
      <pubDate>Tue, 10 Jan 2012 12:34:26 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: The SQL Server ODBC Driver for Linux is Available!]]></title>
      <guid>http://www.phpdeveloper.org/news/17180</guid>
      <link>http://www.phpdeveloper.org/news/17180</link>
      <description><![CDATA[<p>
As <i>Brian Swan</i> has mentioned in <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/11/28/the-sql-server-odbc-driver-for-linux-is-available.aspx">his latest blog post</a>, the ODBC database driver for SQL Server on Linux has been released. This is a huge step forward for directly connecting linux-based systems (and programming languages) to this popular Microsoft product.
</p>
<blockquote>
The first beta release of the SQL Server ODBC Driver for Linux is available for download! As <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/10/13/microsoft-announces-sql-server-odbc-driver-for-linux.aspx">announced in October</a>, the "Multiplatform Team" (a.k.a. the "MPlat Team") has released a preview version of a driver that will provide first-class access to SQL Server from applications running on Linux operating systems. The team is looking for feedback on this release to incorporate into their production-ready release, so try it out and let us know what you think.
</blockquote>
<p>
He links to a few resources about the release - <a href="http://blogs.technet.com/b/dataplatforminsider/archive/2011/11/28/available-today-preview-release-of-the-sql-server-odbc-driver-for-linux.aspx">more details</a>, a <a href="http://www.microsoft.com/download/en/details.aspx?id=28160">link to download the driver</a> and the <a href="http://msdn.microsoft.com/en-us/library/hh568451(SQL.110).aspx">official documentation</a>.
</p>]]></description>
      <pubDate>Tue, 29 Nov 2011 08:39:35 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: Using SQL Azure to Store PHP Session Data]]></title>
      <guid>http://www.phpdeveloper.org/news/17024</guid>
      <link>http://www.phpdeveloper.org/news/17024</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Brian Swan</i> takes a look at working with sessions in PHP and, specifically, how to <a href="http://blogs.msdn.com/b/silverlining/archive/2011/10/19/using-sql-azure-to-store-php-session-data.aspx">save them to Azure</a> along with all of their data.
</p>
<blockquote>
In my <a href="http://blogs.msdn.com/b/silverlining/archive/2011/10/18/handling-php-sessions-in-windows-azure.aspx">last post</a>, I looked at the session handling functionality that is built into the <a href="http://phpazure.codeplex.com/">Windows Azure SDK for PHP</a>, which uses <a href="http://www.microsoft.com/windowsazure/features/storage/">Azure Tables or Azure Blobs</a> for storing session data. As I wrote that post, I wondered how easy it would be to use <a href="http://msdn.microsoft.com/en-us/library/ee336241.aspx">SQL Azure</a> to store session data, especially since using a database to store session data is a common and familiar practice when building distributed PHP applications.  As I found out, using SQL Azure to store session data was relatively easy (as I'll show in this post), but I did run into a couple of small hurdles that might be worth taking note of.
</blockquote>
<p>
He uses PHP's own <a href="http://us2.php.net/session_set_save_handler">session_set_save_handler</a> to point to his custom Azure handling class with the needed methods (like write, close and destroy). He breaks it out into three simple steps, some with a bit of code attached:
</p>
<ul>
<li>Create the database, table, and stored procedure
<li>Add the SqlAzureSessionHandler class to your project
<li>Instantiate SqlAzureSessionHandler before calling session functions as you normally would
</ul>
<p>
The code for the Azure handling class can be downloaded <a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-22-76-75/SqlAzureSessionHandler.zip">here</a>.
</p>]]></description>
      <pubDate>Fri, 21 Oct 2011 08:32:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: Version 3.0 (beta) of the SQL Server Drivers for PHP Released!]]></title>
      <guid>http://www.phpdeveloper.org/news/16925</guid>
      <link>http://www.phpdeveloper.org/news/16925</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> has a new post to his MSDN blog today about the release of the latest version (3.0 beta) of the SQL Server drivers for PHP. <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/09/22/version-3-0-beta-of-the-sql-server-drivers-for-php-released.aspx">This new release</a> includes three improvements - buffered queries, support for LocalDB and support for high availability/disaster recovery.
</p>
<blockquote>
A <a href="http://blogs.msdn.com/b/sqlphp/archive/2010/06/14/what-is-a-community-technology-preview-ctp.aspx">Community Technology Preview</a> (a beta release) of v3.0 of the SQL Server Drivers for PHP was released today (see the announcement on the <a href="http://blogs.msdn.com/b/sqlphp/archive/2011/09/24/microsoft-drivers-3-0-for-php-for-sql-server-released.aspx">team blog</a>). You can download it here: <a href="http://www.microsoft.com/download/en/details.aspx?id=17308">Download v3.0 of the SQL Server Drivers for PHP</a>. [...] It's important to note that the latter two features are dependent on the next version of SQL Server (code named "Denali"). A preview of Denali can be downloaded for free here (see notes later in this article about the installation process): <a href="http://www.microsoft.com/sqlserver/en/us/future-editions.aspx">Download SQL Server Denali CTP 3</a>. 
</blockquote>
<p>
He gives brief summaries (some with example code) of what these three new features have to offer those using SQL Server in their applications. The "buffered queries" allows you to bring your entire result set into memory, making it simpler to interact with as rows/columns. The <a href="http://blogs.msdn.com/b/sqlexpress/archive/2011/07/12/introducing-localdb-a-better-sql-express.aspx">LocalDB</a> support gives developers a quick way to have a database without the hassle of a server - just connect right to the SQL Server database file. The high availability feature has been included for a while but has a new name in the upcoming release - <a href="http://blogs.technet.com/b/dataplatforminsider/archive/2011/08/18/alwayson-new-in-sql-server-code-name-quot-denali-quot-ctp3.aspx">SQL Server Always On</a>.
</p>]]></description>
      <pubDate>Thu, 29 Sep 2011 08:06:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: PHP Driver for SQL Server - Request for Feature Feedback]]></title>
      <guid>http://www.phpdeveloper.org/news/16596</guid>
      <link>http://www.phpdeveloper.org/news/16596</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> is <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/07/14/php-driver-for-sql-server-request-for-feature-feedback.aspx">asking for user feedback</a> about the future of the Microsoft's SQL Server driver for PHP based on <a href="http://blogs.msdn.com/b/sqlphp/archive/2011/07/14/feature-feedback.aspx">a post</a> in the team's blog.
</p>
<blockquote>
I want to make sure that his request gets in front of lots of eyes, so I'm re-posting his request here (below). Jonathan included some links in his post so you can learn more about what the team is considering for the next release of the driver, but he didn't elaborate on "Buffered Queries". 
</blockquote>
<p>
They <a href="http://blogs.msdn.com/b/sqlphp/archive/2011/07/14/feature-feedback.aspx">suggest</a> a few features and ask for choices on which would be the most important to you as a developer - Always On support, SQL Server Serverless Express support, Buffered queries and LOB streaming support in PDO_SQLSRV. To give feedback, send an email to the address mentioned <a href="http://blogs.msdn.com/b/sqlphp/archive/2011/07/14/feature-feedback.aspx">in the post</a> or on <a href="https://twitter.com/#%21/kop48">twitter</a>/<a href="http://social.msdn.microsoft.com/Forums/en-US/sqldriverforphp/">their forums</a>.
</p>]]></description>
      <pubDate>Fri, 15 Jul 2011 10:22:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: SQL Server JumpIn! Camp Wrap Up]]></title>
      <guid>http://www.phpdeveloper.org/news/16522</guid>
      <link>http://www.phpdeveloper.org/news/16522</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> (of Microsoft) has <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/06/24/sql-server-jumpin-camp-wrap-up.aspx">posted his wrapup</a> of the recent Jump In! Camp they held around integration of SQL Server functionality into several popular PHP projects like the <a href="http://framework.zend.com">Zend Framework</a> and <a href="http://pear.php.net">PEAR</a>.
</p>
<blockquote>
During each day of the camp, PHP developers worked side-by-side with Microsoft developers to add SQL Server and SQL Azure support to their projects, but nearly everyone put in many extra hours late at night (and even early morning!) to add support for other Microsoft technologies (such as IIS, Web Platform Installer, and Windows Azure). 
</blockquote>
<p>
He includes some pictures taken of <a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-33-78-metablogapi/8176.JICWork_5F00_done_5F00_74B25572.jpg">the progress board</a> for the various projects and <a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-33-78-metablogapi/4353.JICWish_5F00_list_5F00_46E48CAD.jpg">the wishlist</a> that developers in attendance requested of the Microsoft team.
</p>
<blockquote>
I can't say thanks enough to all the participants for being 100% invested in the camp and for going the extra mile to investigate how their projects might be able to integrate Microsoft technologies beyond SQL Server and SQL Azure. I know that the entire SQL Server team echoes my thanks.
</blockquote>]]></description>
      <pubDate>Mon, 27 Jun 2011 12:28:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Jump In Camp - Who is here and what are they doing?]]></title>
      <guid>http://www.phpdeveloper.org/news/16505</guid>
      <link>http://www.phpdeveloper.org/news/16505</link>
      <description><![CDATA[<p>
On the Zend Developer Zone <i>Cal Evans</i> has a new post looking at an event Microsoft is holding this week, the SQL Server Jump In! Camp, and <a href="http://devzone.zend.com/article/15598-Jump-In-Camp---Who-is-here-and-what-are-they-doing">who's there and what's going on</a>:
</p>
<blockquote>
This is a different kind of Camp, the focus is on writing code, not necessarily learning new techniques. That is not to say that there isn't learning, showcasing and demoing going on, but it is obviously not the focus of the week.
</blockquote>
<p>
Projects that are represented at the camp include PEAR, Frapi, CakePHP, Zend Framework, VoceComm and Agavi. One of the main focuses of the week-long event is to get SQL server support introduced into each of the projects and to have it ready to ship by the end of the week. <a href="http://twitter.com/#!/davidcoallier/status/83265395871592448">Some projects</a> have already released their SQL server support.
</p>]]></description>
      <pubDate>Wed, 22 Jun 2011 11:14:15 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: SQL Server Driver for PHP Connection Options: Encrypt & Failover_Partner]]></title>
      <guid>http://www.phpdeveloper.org/news/16030</guid>
      <link>http://www.phpdeveloper.org/news/16030</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> has posted two more in his "SQL Server Driver for PHP" series looking at some of the connection options that are available. In these two new articles he looks at the <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/03/03/sql-server-driver-for-php-connection-options-failover-partner.aspx">Failover_Partner</a> and <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/03/08/sql-server-driver-for-php-connection-options-encrypt.aspx">Encrypt</a> options.
</p>
<blockquote>
<p>
Database mirroring is primarily a software solution for increasing database availability. [...] When a PHP application connects to the primary server, the Failover_Partner connection option specifies the name of the server to which the application should connect if the primary server is not available.
</p>
<p>
[...] These two options, Encrypt and TrustServerCertificate, are often used together. The Encrypt option is used to specify whether or not the connection to the server is encrypted (the default is false). The TrustServerCertificate option is used to indicate whether the certificate on the SQL Server instance should be trusted (the default is false).
</p>
</blockquote>
<p>
In both there's code examples showing the connection strings and what kinds of parameters you can pass to them. He also gives a few examples of scenarios when they might be useful.
</p>]]></description>
      <pubDate>Fri, 11 Mar 2011 08:41:11 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Brian Swan's Blog: SQL Server Driver for PHP Connection Options: CharacterSet]]></title>
      <guid>http://www.phpdeveloper.org/news/15972</guid>
      <link>http://www.phpdeveloper.org/news/15972</link>
      <description><![CDATA[<p>
<i>Brian Swan</i> has posted another in his series looking at connection options for the SQL Server driver for PHP. In <a href="http://blogs.msdn.com/b/brian_swan/archive/2011/02/24/sql-server-driver-for-php-connection-options-characterset.aspx">his latest</a> he looks at the "CharacterSet" setting, an easy way to define which encoding the remote database is using.
</p>
<blockquote>
One thing that helped me understand the CharacterSet option was to realize that its name is a bit misleading (although it seems to be inline with other uses of CharacterSet or charset). It is used to specify the encoding of data that is being sent to the server, not the character set. With that in mind, the possible values for the option begin to make sense: SQLSRV_ENC_CHAR, SQLSRV_ENC_BINARY, and UTF-8. 
</blockquote>
<p>
He looks at each of these three options in more detail - SQLSRV_ENC_CHAR being the default, SQLSRV_ENC_BINARY when binary data is needed and UTF-8 when, obviously, you need UTF-8 data transfer between the client and server.
</p>]]></description>
      <pubDate>Mon, 28 Feb 2011 12:15:33 -0600</pubDate>
    </item>
  </channel>
</rss>
