PHP is a very popular scripting language used primarily for handling dynamic Web pages. PHP users are sure to be pleasantly surprised by the ability to run PHP applications within the Windows Azure platform.
We know that one of the advantages of Microsoft's Windows Azure platform compared with other cloud computing platforms is that it has the innate advantage of convenient development tools and familiar programming languages.
Let's take a look at how simple and easy it is to run PHP apps within Windows Azure.
Pre-conditions:
Php
IIS 7 (Open ASP. WCF HTTP Activation)
Microsoft Visual Studio SP1 (or higher)
Windows Azure Tools for Microsoft Visual Studio (June 2010)
Code:
1. First, we download the latest non-thread-safe version of PHP from http://windows.php.net/download/.
The author downloads the VC9 x86 Non Thread Safe (2010-mar-04 20:11:07) version. In the sidebar of the download page, we can see the difference between the VC6 and VC9 versions, the VC6 version is compiled with the Visual Studio 6 compiler, and the VC9 version is compiled by the Visual Studio 2008 compiler with improved performance and stability. The difference between thread safety and non-threading security is that the Windows operating system uses a multithreaded architecture, while Linux and Unix use a multi-process architecture.
2. Open Visual Studio and create a new project->visual c#->cloud->windows Azure Cloud Service. Enter the project name CloudService1, then click OK.
Add Cgi_web Role, renamed to Php_webcgirole. Click OK.
http://www.bkjia.com/PHPjc/486298.html www.bkjia.com true http://www.bkjia.com/PHPjc/486298.html techarticle PHP is a very popular scripting language used primarily for handling dynamic Web pages. PHP users are sure to be pleasantly surprised by the ability to run PHP applications within the Windows Azure platform. We know that Microsoft ...