Use PHP to set up a Web site in Windows http://www.aliyun.com/zixun/aggregation/13357.html ">azure Web service, or to compose a Web application, except Windows Azure Web services are already ready for the PHP execution environment, there are situations where you might want to develop or use a PHP expansion kit (PHP Extensions) that someone else has developed, for example, to use Memcache for a cache, many people will use this on pec++l Memcache extension. Want to use PHP extensions just make some adjustments in the background of Windows Azure Web service. The following is memcached extension as a demonstration:
1. Be particularly aware when obtaining PHP extension, because Windows Azure Web service is based on Windows Server and IIS, so the PHP extension you want to use must be compiled as a version of Windows (that is,. dll file), the Windows Azure Web site service is currently performing the correct version (and is non thread safe) compiled through VC9 (Visual C + + 2008), as for the version of 32-bit or 64-bit, PHP, Also depends on your website service settings to use which environment.
In the background of Windows Azure Web site Settings, each environment to confirm the setting why
2. Through FTP or other deployment you already use, create a bin folder under the root directory (sites\wwwroot) of the Web site (this name can be set itself, not necessarily bin), and then put the Php_memcache.dll file in sites\ Wwwroot\bin\ directory.
3. Next, in the Windows Azure Web site service Management Interface Settings page, add a php_extensions setting in the application settings, then the value is set to Bin\php_memcache.dll (if there are multiple EXTENSIONS, separated by commas) are as follows:
Php_extensions Set
4. After the storage change, your PHP website can use php_memcache.dll this extension function.