<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Installing PHP 5.3 on Microsoft IIS</title>
	<atom:link href="http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/</link>
	<description>Join the dark side</description>
	<lastBuildDate>Wed, 08 Sep 2010 07:45:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Andrew Kriner</title>
		<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/comment-page-1/#comment-318</link>
		<dc:creator>Andrew Kriner</dc:creator>
		<pubDate>Sat, 14 Aug 2010 06:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://jimmyli.net/?p=43#comment-318</guid>
		<description>Good post, will frequent your site.</description>
		<content:encoded><![CDATA[<p>Good post, will frequent your site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/comment-page-1/#comment-305</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Wed, 11 Aug 2010 00:00:12 +0000</pubDate>
		<guid isPermaLink="false">http://jimmyli.net/?p=43#comment-305</guid>
		<description>Just want to mention that there is a newer version of the SQL Server Driver for PHP out (v2.0):
http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=80e44913-24b4-4113-8807-caae6cf2ca05

Just swapping out the DLL for the new one and restarting the web server should be enough, or if you want to rewrite it using the PDO option, that&#039;s available too. (I have not tried out PDO.)</description>
		<content:encoded><![CDATA[<p>Just want to mention that there is a newer version of the SQL Server Driver for PHP out (v2.0):<br />
<a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=80e44913-24b4-4113-8807-caae6cf2ca05" rel="nofollow">http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=80e44913-24b4-4113-8807-caae6cf2ca05</a></p>
<p>Just swapping out the DLL for the new one and restarting the web server should be enough, or if you want to rewrite it using the PDO option, that&#8217;s available too. (I have not tried out PDO.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/comment-page-1/#comment-304</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Tue, 10 Aug 2010 07:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://jimmyli.net/?p=43#comment-304</guid>
		<description>I guess the route you choose depends on what you&#039;re doing. I chose to separate the loop and save the results temporarily. Somehow I feel that opening up another connection just uses up more resource and memory. (I have no tests to back that case up.) If your application is public and will have many users, it might even hit that database connection limit quicker (whatever that limit may be). Mine&#039;s an internal app, so I&#039;m not really worried about it.

Yep, my IIS and SQL Server are two different servers. I&#039;m sure that&#039;s why it thinks I&#039;m trying to log in as a null user.</description>
		<content:encoded><![CDATA[<p>I guess the route you choose depends on what you&#8217;re doing. I chose to separate the loop and save the results temporarily. Somehow I feel that opening up another connection just uses up more resource and memory. (I have no tests to back that case up.) If your application is public and will have many users, it might even hit that database connection limit quicker (whatever that limit may be). Mine&#8217;s an internal app, so I&#8217;m not really worried about it.</p>
<p>Yep, my IIS and SQL Server are two different servers. I&#8217;m sure that&#8217;s why it thinks I&#8217;m trying to log in as a null user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil</title>
		<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/comment-page-1/#comment-303</link>
		<dc:creator>Anil</dc:creator>
		<pubDate>Tue, 10 Aug 2010 04:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://jimmyli.net/?p=43#comment-303</guid>
		<description>That is funny.  I was just about to sit down to do exactly what you have described above.  I want to add records to a table, but first I want to check if a duplicate exists.  I believe that above is the way I would do that.  Anyway, opening up two DB connections seems like a good enough way to go.

Are your IIS and SQL servers on different servers?  That is the only scenario I can see that you would get a null user.</description>
		<content:encoded><![CDATA[<p>That is funny.  I was just about to sit down to do exactly what you have described above.  I want to add records to a table, but first I want to check if a duplicate exists.  I believe that above is the way I would do that.  Anyway, opening up two DB connections seems like a good enough way to go.</p>
<p>Are your IIS and SQL servers on different servers?  That is the only scenario I can see that you would get a null user.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/comment-page-1/#comment-301</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Mon, 09 Aug 2010 08:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://jimmyli.net/?p=43#comment-301</guid>
		<description>I&#039;m glad that everything is working out. Just to give you a heads up on something I came upon which gave me a huge headache and took a while to figure out. Using SQL Server 2000 and this SQL Server Driver, you cannot call another statement while actively in a statement. Here&#039;s a quick example of what I&#039;m talking about:

[code]
$result = query(&#039;...&#039;);
while ($row = fetch_array($result)) {
  $result2 = query(&#039;...&#039;);  // this will fail
  while ($line = fetch_array($result)) {
    // more code
  }
}
[/code]

This is because SQL Server 2000 does not support Multiple Active Result Set (MARS), which is only available from 2005+. Do a search for more info. But if you come upon such a scenario, you&#039;ll have to either open up another SQL connection, or save the results from the first statement, then run the second statement separately. I will write an article about it with more details, but I just want to give you a heads up since you have this combo. The old PHP 5.2 MSSQL extension apparently allowed us to do this nested statement without complaining. I&#039;m not sure how, but I imagined it must have opened up an extra connection transparently.

As for the null user, I just left out the username/password part of the connection array (as mentioned on the docs with using Windows Auth), and it said (null) was not a valid user. (And I&#039;m sure there is no such user.) I use IIS6.0 and SQL Server 2000, like yours.</description>
		<content:encoded><![CDATA[<p>I&#8217;m glad that everything is working out. Just to give you a heads up on something I came upon which gave me a huge headache and took a while to figure out. Using SQL Server 2000 and this SQL Server Driver, you cannot call another statement while actively in a statement. Here&#8217;s a quick example of what I&#8217;m talking about:</p>
<pre class="brush: plain;">
$result = query('...');
while ($row = fetch_array($result)) {
  $result2 = query('...');  // this will fail
  while ($line = fetch_array($result)) {
    // more code
  }
}
</pre>
<p>This is because SQL Server 2000 does not support Multiple Active Result Set (MARS), which is only available from 2005+. Do a search for more info. But if you come upon such a scenario, you&#8217;ll have to either open up another SQL connection, or save the results from the first statement, then run the second statement separately. I will write an article about it with more details, but I just want to give you a heads up since you have this combo. The old PHP 5.2 MSSQL extension apparently allowed us to do this nested statement without complaining. I&#8217;m not sure how, but I imagined it must have opened up an extra connection transparently.</p>
<p>As for the null user, I just left out the username/password part of the connection array (as mentioned on the docs with using Windows Auth), and it said (null) was not a valid user. (And I&#8217;m sure there is no such user.) I use IIS6.0 and SQL Server 2000, like yours.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil</title>
		<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/comment-page-1/#comment-300</link>
		<dc:creator>Anil</dc:creator>
		<pubDate>Mon, 09 Aug 2010 05:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://jimmyli.net/?p=43#comment-300</guid>
		<description>I am happy to report that the SQL queries are working.  However, I did have to change a bunch of function names from using the mssql_ prefix to the using the sqlsrv_prefix. e.g.
mssql_fetch_array to sqlsrv_fetch_array.

Never heard of a (null) user.  Are you sure you were using Windows Authentication?  Which Web Server.  I am only familiar with IIS.

Anyway thanx much for your help.</description>
		<content:encoded><![CDATA[<p>I am happy to report that the SQL queries are working.  However, I did have to change a bunch of function names from using the mssql_ prefix to the using the sqlsrv_prefix. e.g.<br />
mssql_fetch_array to sqlsrv_fetch_array.</p>
<p>Never heard of a (null) user.  Are you sure you were using Windows Authentication?  Which Web Server.  I am only familiar with IIS.</p>
<p>Anyway thanx much for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/comment-page-1/#comment-298</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Sun, 08 Aug 2010 09:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://jimmyli.net/?p=43#comment-298</guid>
		<description>Great! Let me know how it goes, and if you get any further on Windows Auth.
I took a shot yesterday at just leaving the user/pass out of the connection, and I got a similar error you got for login failed, except mine said that &#039;(null)&#039; was not a valid user...</description>
		<content:encoded><![CDATA[<p>Great! Let me know how it goes, and if you get any further on Windows Auth.<br />
I took a shot yesterday at just leaving the user/pass out of the connection, and I got a similar error you got for login failed, except mine said that &#8216;(null)&#8217; was not a valid user&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil</title>
		<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/comment-page-1/#comment-296</link>
		<dc:creator>Anil</dc:creator>
		<pubDate>Sat, 07 Aug 2010 17:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://jimmyli.net/?p=43#comment-296</guid>
		<description>It worked!  Let me qualify that.  :-)

As far as I can tell, Windows Authentication still does not work for me. However, I did create a new login on the SQL Server which used SQL Server Authentication and defaulted to the database I needed.   I now get a connection!

I have not tried any queries yet, but I am sure they will work - will report back.  Also, I will let you know if Windows Auth works.

Cheers!</description>
		<content:encoded><![CDATA[<p>It worked!  Let me qualify that.  <img src='http://jimmyli.net/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>As far as I can tell, Windows Authentication still does not work for me. However, I did create a new login on the SQL Server which used SQL Server Authentication and defaulted to the database I needed.   I now get a connection!</p>
<p>I have not tried any queries yet, but I am sure they will work &#8211; will report back.  Also, I will let you know if Windows Auth works.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/comment-page-1/#comment-294</link>
		<dc:creator>Jimmy</dc:creator>
		<pubDate>Fri, 06 Aug 2010 18:50:53 +0000</pubDate>
		<guid isPermaLink="false">http://jimmyli.net/?p=43#comment-294</guid>
		<description>There is a web version of the SQL Server Driver documentation if it&#039;s more convenient for you:
http://msdn.microsoft.com/en-us/library/ee229551%28v=SQL.10%29.aspx

I see. I don&#039;t have experience with SharePoint so I don&#039;t know how the database is set up and how users work. The SQL Server 2000 I have access to is a company installation that I don&#039;t have admin rights to, so I can&#039;t really authorize a Windows account for it.

Do you have admin rights to your database server, or request rights? If so, what if you tried setting up a local database user and using SQL Server Authentication instead?

By the way, is your PHP Server and your SQL Server on the same box, or separate?</description>
		<content:encoded><![CDATA[<p>There is a web version of the SQL Server Driver documentation if it&#8217;s more convenient for you:<br />
<a href="http://msdn.microsoft.com/en-us/library/ee229551%28v=SQL.10%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ee229551%28v=SQL.10%29.aspx</a></p>
<p>I see. I don&#8217;t have experience with SharePoint so I don&#8217;t know how the database is set up and how users work. The SQL Server 2000 I have access to is a company installation that I don&#8217;t have admin rights to, so I can&#8217;t really authorize a Windows account for it.</p>
<p>Do you have admin rights to your database server, or request rights? If so, what if you tried setting up a local database user and using SQL Server Authentication instead?</p>
<p>By the way, is your PHP Server and your SQL Server on the same box, or separate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil</title>
		<link>http://jimmyli.net/2009/07/installing-php-53-on-microsoft-iis/comment-page-1/#comment-293</link>
		<dc:creator>Anil</dc:creator>
		<pubDate>Fri, 06 Aug 2010 17:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://jimmyli.net/?p=43#comment-293</guid>
		<description>Yes, I have used exactly what you had suggested and also the code in the link in your second message.  In fact, that very same example is in the help file SQLServerDriverForPHP.chm you mentioned earlier.

I have searched extensively on Google and MSDN, and tried all kinds of combinations. It seems this error message is common for Sharepoint installations, but their fixes have not worked for me - at least the ones that appear to apply.

So still no juice.</description>
		<content:encoded><![CDATA[<p>Yes, I have used exactly what you had suggested and also the code in the link in your second message.  In fact, that very same example is in the help file SQLServerDriverForPHP.chm you mentioned earlier.</p>
<p>I have searched extensively on Google and MSDN, and tried all kinds of combinations. It seems this error message is common for Sharepoint installations, but their fixes have not worked for me &#8211; at least the ones that appear to apply.</p>
<p>So still no juice.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
