Brian Swan's Blog
-
Accessing Windows Azure Table Data as OData via PHP
Did you know that data stored in Windows Azure Table storage can be accessed through an OData feed? Does that question even make sense to you? If you answered no to either of those questions and you are interested in learning more, then read on. In this post I’ll show you how to use the OData SDK for PHP to retrieve, insert, update, and delete data stored in Windows Azure Table storage. If you are new to either Windows Azure Table storage or the OData protocol, I suggest reading either (or both) of these posts (among other things, they will describe what Azure Table storage and OData are, and walk you through set up of Azure Table storage and the OData SDK for PHP):
-
SQL Server Driver for PHP Connection Options: Snapshot Isolation
In the post I wrote last week about transaction isolation levels I left out an important option: the snapshot isolation level for database transactions. I’ll cover the snapshot isolation level in this post, and (as in my earlier post) I’ll look at what happens at the database level when using a particular isolation level (rather than concentrating on PHP data access code). I should also point out that in my earlier post I covered the ANSI standard isolation levels, which are implemented by most relational database management systems (SQL Server, MySQL, Oracle, DB2, etc.). However, the snapshot isolation level is not an ANSI standard and is not implemented by all database management systems (including MySQL), so this post isn’t necessarily as database-agnostic as my earlier post. That said, the concepts in this post are broadly applicable to many (just not all) RDBMS.
-
This Week’s Link List (September 10, 2010)
Here’s the list of interesting links I came across this week…
-
Interview with Eli White, PHP Developer and Intern on the ASP.NET Team
I had the good fortune of meeting Eli White, a junior at University of Washington and a PHP developer of 7 years, for the first time at the local Seattle PHP Meet Up a few months ago. I then ran into him recently at Microsoft where I found he is doing an internship on the ASP.NET team. I had lunch with Eli last week and we talked about the work he’s doing on Web Matrix and Razor. I thought his perspective as a PHP developer on Web Matrix and Razor were worth sharing…
-
SQL Server Driver for PHP Connection Options: Transaction Isolation Levels
Last week I had the good fortune of presenting at the the Seattle PHP Meet Up on a topic I knew only a little about: transaction isolation levels. It was fun doing the homework to learn more and I’ll share what I learned in this post. However, before diving in, I want to call out two things:
-
This Week’s Link List (September 3, 2010)
I missed last week’s list because I was out enjoying the last of our summer weather in in the Pacific northwest, so this week’s list spans two weeks…
-
Accessing OData for SQL Azure with AppFabric Access Control and PHP
If you are having trouble making sense of the title of this post, I don’t blame you. To clear things up, here’s what this post is about (which I couldn’t fit any more concisely into a title): The SQL Azure Labs team has made it possible to consume data in SQL Azure as an OData feed. And, you can set up an OData feed so that only authenticated users (authenticated with the AppFabric access control service, or ACS) can access it. In this post, I’ll show you how to consume these protected feeds using PHP.
-
Managing Multiple PHP Versions with PHP Manager for IIS 7
Some time back I wrote a post about how to run multiple PHP versions on the same server with IIS (Running Multiple PHP Versions with IIS). While running multiple PHP versions wasn’t complicated, it wasn’t a no-brainer either. Today, Ruslan Yakushev (a Program Manager on the IIS team at Microsoft), announced the beta release the PHP Manager project on CodePlex: PHP Manager for IIS 7 – beta release. Not only does the PHP Manager make it a no-brainer to run different PHP versions side-by-side on IIS, it makes it easy to register PHP with IIS, configure various PHP settings, enable/disable PHP extensions, remotely manage PHP configuration via the php.ini file, and check the PHP runtime configuration and environment (i.e. see the output of phpinfo()). Read his announcement for a complete tour of this release (and provide feedback!). I’ll just take a quick look at how easy it is to get multiple PHP versions running in this post.
-
This Week’s Link List (August 20, 2010)
The dog days of summer are here. Seems like things are a bit slow lately…I only have a few links to share, in any case. But share I will…the lack of quantity does not impact their quality…
-
Access Control with the Azure AppFabric SDK for PHP
In my last post I used some bare-bones PHP code to explain how the Windows Azure AppFabric access control service works. Here, I’ll build on the ideas in that post to explain how to use some of the access control functionality that is available in the AppFabric SDK for PHP Developers. I will again build a barpatron.php client (i.e. a customer) that requests a token from the AppFabric access control service (ACS) (the bouncer). Upon receipt of a token, the client will present it to the bartender.php service (the bartender) to attempt to access a protected resource (drinks). If the service can successfully validate the token, the protected resource will be made available.