<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JimmyLi.net &#187; PHP 5.3</title>
	<atom:link href="http://jimmyli.net/tag/php-53/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimmyli.net</link>
	<description></description>
	<lastBuildDate>Thu, 04 Aug 2011 21:40:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Finally a working SQL Server Driver for PHP 5.3</title>
		<link>http://jimmyli.net/2009/09/finally-a-working-sql-server-driver-for-php-5-3/</link>
		<comments>http://jimmyli.net/2009/09/finally-a-working-sql-server-driver-for-php-5-3/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 21:17:25 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[ms sql]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[PHP 5.3]]></category>

		<guid isPermaLink="false">http://jimmyli.net/?p=52</guid>
		<description><![CDATA[Update: I’ve started an IIS Tutorial Series on Talking to SQL Server with PHP on IIS which contains more details of this installation. It&#8217;s been a while since I&#8217;ve touched on the issue of having PHP 5.3 talk to a MS SQL Server on IIS (without using ODBC or other connection methods).  Last time I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Update:</strong> I’ve started an IIS Tutorial Series on <a href="../../2010/08/talking-to-sql-server-with-php-on-iis/">Talking to SQL Server with PHP on IIS</a> which contains more details of this installation.</em></p>
<p>It&#8217;s been a while since I&#8217;ve touched on the issue of having PHP 5.3 talk to a MS SQL Server on IIS (without using ODBC or other connection methods).  <a href="/2009/08/no-sql-server-library-for-php-5-3-just-yet/">Last time</a> I&#8217;ve mentioned that Microsoft has an official SQL Server Driver (v1.0) for PHP to talk to a SQL Server only to find that it doesn&#8217;t work for PHP pre-v5.3, which, we didn&#8217;t really need anyway because PHP already came with a MS SQL Library driver (which was removed from 5.3) that <a href="/2009/03/php-unable-to-connect-to-mssql/">somewhat works</a>.</p>
<p>However, after starting to play around with PHP 5.3 with SQL Server again I&#8217;ve noticed that Microsoft finally release <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=ccdf728b-1ea0-48a8-a84a-5052214caad9&amp;displaylang=en" target="_blank">v1.1 of the SQL Server Driver</a>, one that was stated to work with PHP 5.3 on IIS. Lo and behold, I was finally able to get it to work.  Even better, the package also came with an offline documentation on installing the driver and the whole API Reference.  Very nice.  For those who are interested, here is the documentation online, the lo-bandwidth version (no MS Frames):<br />
<a href="http://msdn.microsoft.com/en-us/library/cc296172%28SQL.90,loband%29.aspx" target="_blank">SQL Server Driver v1.1 for PHP</a></p>
<p>Note that if your SQL Server is on another server from the PHP server, you&#8217;ll also need to install the SQL Native Client data access library on the PHP server.  (If it is on the same server, the installation of SQL Server already installs this package.)  It is highly recommended to use the latest version that works with SQL Server 2008.  It took me a while to find it (the 2005 version link is rampantly posted everyhere), but you can find it officially here:<br />
<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73C&amp;displaylang=en" target="_blank">Microsoft SQL Server 2008 Feature Pack, August 2008</a></p>
<p>Near the bottom of the page you&#8217;ll find &#8220;Microsoft SQL Server 2008 Native Client&#8221;.  Get the one that&#8217;s appropriate for your machine.  Despite it saying 2008, it should be backwards compatible with earlier versions of SQL Server.  I&#8217;ve tried it as far as SQL Server 2000 (on IIS 6.0) and was able to connect and query successfully (I haven&#8217;t tested for limitations and such, if any.)</p>
<p>And there you have it.  The official method to talk to a MS SQL Server on IIS with PHP 5.3, straight from Microsoft themselves.</p>
<p><span style="text-decoration: underline;">Updated: October 09, 2009</span><br />
The version of the SQL Driver 1.1 that was released in August was a preview release version.  Microsoft officially released the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=ccdf728b-1ea0-48a8-a84a-5052214caad9&amp;displaylang=en" target="_blank">final version</a> of SQL Server Driver 1.1 on October 6th.</p>
]]></content:encoded>
			<wfw:commentRss>http://jimmyli.net/2009/09/finally-a-working-sql-server-driver-for-php-5-3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing PHP 5.3 on Microsoft IIS</title>
		<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/</link>
		<comments>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 20:19:57 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[MS IIS]]></category>
		<category><![CDATA[MS SQL Server]]></category>
		<category><![CDATA[PHP 5.3]]></category>

		<guid isPermaLink="false">http://jimmyli.net/?p=43</guid>
		<description><![CDATA[Update: This article is considered outdated. I&#8217;ve started an IIS Tutorial Series on how to install PHP and FastCGI on IIS 6.0. With the release of PHP 5.3.0 introducing a lot of new features and bug fixes, it also comes in with a lot of changes for Microsoft IIS users.  The biggest one of them [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>Update:</strong> This article is considered outdated. I&#8217;ve started an IIS Tutorial Series on <a href="http://jimmyli.net/2010/02/installing-fastcgi-and-php-for-iis-6-0/">how to install PHP and FastCGI on IIS 6.0</a>.</em></p>
<p>With the release of <a href="http://www.php.net/archive/2009.php#id2009-06-30-1">PHP 5.3.0</a> introducing a lot of new features and bug fixes, it also comes in with a lot of changes for Microsoft IIS users.  The biggest one of them is the way that PHP is now installed on IIS.  The PHP 5.3 package now no longer provides an ISAPI DLL file (which I&#8217;ve been using).  The only way to do it is through CGI, in which you should (have to?) use the FastCGI module.  Depending on which version of IIS you have, the setup will be different.  (I have IIS 6.0 on a Windows 2003 server).  Microsoft seems to have gotten more close with Zend recently and provided better support on IIS that they even have a dedicated <a href="http://php.iis.net/">website</a> for installing PHP on IIS and providing community support.  Everything you need to know for installing PHP on IIS is on that website.  PHP also now have a <a href="http://windows.php.net/">website</a> dedicated to supporting PHP on Windows, regardless of whether you&#8217;re using IIS or Apache on Windows.</p>
<p>One of the big drawbacks I&#8217;ve found was that PHP decided to remove the MS SQL Server connection driver in the PHP 5.3 package.  Just adding back in the DLLs from the old PHP packages back in the PHP directory did not work for me.  Not only did they make it harder for IIS users to install PHP, they had to make it harder for those to connect to MS SQL Server.  Upon doing some online searches, the driver used in PHP was very old (which explains <a href="http://jimmyli.net/2009/03/php-unable-to-connect-to-mssql/">my post</a> on trying to get it to work properly on previous versions of PHP).  Microsoft now has it&#8217;s <a href="http://www.microsoft.com/sqlserver/2005/en/us/PHP-Driver.aspx" target="_blank">own version</a> of MS SQL Server driver (2005 and above) for PHP.  I have yet to install it, but it would have to be done on a development environment to redo any code using PHP&#8217;s old connection library.  I&#8217;ve also yet to find any documentation on it so I&#8217;m not sure of the details of the driver.</p>
<p><span style="text-decoration: underline;">Update: September 24, 2009</span><br />
Maybeme compiled a php_mssql.dll that works in the VC9 version of PHP 5.3. Note that the ntwdblib.dll files is still necessary. I haven&#8217;t gotten it to work personally, but it seems others have, so I&#8217;m sharing it for others who wants to try.</p>
<p>Download here: <a href="http://jimmyli.net/wp/wp-content/uploads/2009/09/php_mssql.dll">php_mssql.dll</a> (right-click &gt; Save Link As&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
	</channel>
</rss>

