﻿# Windows Azure for PHP 相關資源整理

前段時間研究了一下如何在 Windows Azure 開發 PHP 應用程式，其實要把現有的 PHP 網站佈署到 Windows Azure 雲端平台並不困難，真的要改的 PHP 程式並不多，最主要還是要花點時間了解一下 Windows Azure 雲端架構，才能規劃出擁有高可用性與高延展性的網站，本篇文章整理一些我之前收集過的資料，方便各位參考。

**了解 Windows Azure 架構**

-   [Windows Azure：Microsoft 雲端平台 | 雲端代管 | 雲端服務](http://www.microsoft.com/taiwan/windowsazure/ "http://www.microsoft.com/taiwan/windowsazure/") ( 台灣 Azure 官網 )
-   \[免費電子書\] [Introducing Windows Azure for IT Pro’s](http://aka.ms/682887pdf)  ( [下載書中相關檔案](http://aka.ms/IntroAzure/files) )

**PHP 開發工具與函式庫**

-   [PHP Dev Center | Windows Azure](http://www.windowsazure.com/en-us/develop/php/)
-   Windows Azure SDK for PHP  
    **( 包含 PHP Client Libraries, Mac 與 Linux 下的指令列工具, PowerShell 工具等等 )**

-   [windows](http://go.microsoft.com/fwlink/?linkid=254280&clcid=0x409)
-   [mac](http://go.microsoft.com/fwlink/?linkid=253471&clcid=0x409)
-   [linux](http://go.microsoft.com/fwlink/?linkid=253472&clcid=0x409)

**Windows Azure SDK for PHP 完整原始碼與範例程式**

-   [WindowsAzure/azure-sdk-for-php](https://github.com/WindowsAzure/azure-sdk-for-php)  ( 這一頁就有很多範例程式了 )
-   [WindowsAzure/azure-sdk-for-php-samples](https://github.com/WindowsAzure/azure-sdk-for-php-samples) ( 更多完整的範例網站 )
-   [建立 Azure SDK for PHP 開發環境的說明文件](https://github.com/WindowsAzure/azure-sdk-for-php/wiki/Devbox-installation-guide)
-   [Windows Azure code samples and examples in C#, VB.NET, PHP, XML, F#](https://web.archive.org/web/20110710053748/http://code.msdn.microsoft.com:80/windowsazure)

**學習資源**

-   Windows Azure PHP Handbook

**論壇資源** ( 發問任何與 Azure 相關的問題 )

-   [MSDN 論壇 - Windows Azure](http://social.msdn.microsoft.com/Forums/windowsazure/zh-tw/home?category=windowsazuretw&filter=alltypes&sort=lastpostdesc) ( 可用中文發問 )
-   [“azure” Questions - Stack Overflow](http://stackoverflow.com/questions/tagged/azure) ( 僅限英文提問 )

**PHP Session 處理**

-   [PHP - Sessions – Manual](http://www.php.net/manual/en/book.session.php) ( 官網文件 )
-   透過 Table Storage 儲存 Sessions

-   [Windows Azure SDK for PHP - Table storage session handler](https://github.com/Azure/azure-sdk-for-php)
-   [Handling PHP Sessions in Windows Azure - The Silver Lining Blog](https://learn.microsoft.com/en-us/archive/blogs/silverlining/handling-php-sessions-in-windows-azure)

-   透過 SQL Azure 儲存 Sessions

-   [Using SQL Azure to Store PHP Session Data - Drivers for PHP for SQL Server Team Blog](https://learn.microsoft.com/en-us/archive/blogs/sqlphp/using-sql-azure-to-store-php-session-data)

**在 Windows Azure 使用 MySQL 的選擇 ( ClearDB )**

-   [Windows Azure Store - ClearDB MySQL Database](http://www.windowsazure.com/en-us/store/service/?id=b2e344bf-2252-44f5-9f5f-4f7aac6d4fa3) ( 台灣尚未開放 Azure Store 下單 )
-   [ClearDB Pricing](https://web.archive.org/web/20160403113422/http://www.cleardb.com/pricing.view "http://www.cleardb.com/pricing.view") ( 價目表 )

**其他**

-   [PHP, Memcache, and Windows Azure Caching - The Silver Lining Blog](https://learn.microsoft.com/en-us/archive/blogs/silverlining/php-memcache-and-windows-azure-caching)
-   [Best Practices for Performance in Windows Azure Applications](http://www.windowsazure.com/en-us/develop/net/best-practices/performance/)
