<?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>Sun, 26 May 2013 02:06:11 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Brian Swan' Blog: Determining Azure Drive Letter with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15357</guid>
      <link>http://www.phpdeveloper.org/news/15357</link>
      <description><![CDATA[<p>
In a quick new post to his blog today <i>Brian Swan</i> shows you how to <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/10/28/determining-azure-drive-letter-with-php.aspx">find a drive letter in Azure</a> through PHP (for a Windows Azure Drive).
</p>
<blockquote>
Today, I'll start by taking a look at Windows Azure Drives. Specifically, I'll explain how to programmatically determine the driver letter for a Windows Azure Drive. (I'll assume you've read the <a href="http://blogs.msdn.com/b/brian_swan/archive/2010/10/12/using-the-windows-azure-tools-for-eclipse-with-php.aspx">getting started post</a> I wrote a couple of weeks ago.) Simply put, a Windows Azure drive acts as a local NTFS volume that is mounted on the server's file system and that is accessible to code running in a role. The data written to a Windows Azure drive is stored in a page blob defined within the Windows Azure Blob service, and cached on the local file system.
</blockquote>
<p>
He shows how he's set up his instance with <a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-33-78-metablogapi/1464.image_5F00_6EB0A7E2.png">two drives</a> and how, with a bit of PHP code, he could grab the value from the "X_DRIVES" environment variable, split it out and loop to find the drive you're looking for. His example code puts a simple text file on the drive and then reads it back out.
</p>]]></description>
      <pubDate>Fri, 29 Oct 2010 12:34:01 -0500</pubDate>
    </item>
  </channel>
</rss>
