php on windows azure
TRANSCRIPT
![Page 1: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/1.jpg)
![Page 2: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/2.jpg)
Linux
Database
kuniteru.asamiFind me
![Page 3: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/3.jpg)
![Page 4: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/4.jpg)
![Page 5: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/5.jpg)
![Page 6: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/6.jpg)
![Page 7: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/7.jpg)
![Page 8: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/8.jpg)
![Page 9: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/9.jpg)
※
![Page 10: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/10.jpg)
![Page 11: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/11.jpg)
![Page 12: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/12.jpg)
https://github.com/WindowsAzure/azure-sdk-for-php
![Page 13: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/13.jpg)
http://cisqlsrvuni.codeplex.com/
icacls ..\approot\temp /grant "IIS_IUSRS":F /T
![Page 14: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/14.jpg)
http://php.net/manual/ja/session.customhandler.php
![Page 15: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/15.jpg)
![Page 16: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/16.jpg)
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=80e44913-24b4-4113-8807-caae6cf2ca05
http://www.php.net/manual/ja/book.sqlsrv.php
![Page 17: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/17.jpg)
http://www.microsoft.com/en-us/download/details.aspx?id=28160
http://msdn.microsoft.com/ja-jp/library/ee460721(v=sql.10)
http://codesynthesis.com/~boris/blog/2011/12/02/microsoft-sql-server-odbc-driver-linux/
![Page 18: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/18.jpg)
INSERT INTO sample (ID, UserName, Created, Updated) VALUES ('1', N'クラウディア', GETDATE(), GETDATE())
SELECT UserName WHERE UserName = N'クラウディア'
$connectionInfo = array(
'UID' => 'DB_USER' . '@'. 'YOURHOST.database.windows.net',
'PWD' => 'DB_PASS',
'Database' => 'sample',
'CharacterSet' => 'UTF-8'
);
$conn = sqlsrv_connect(SERVERNAME, $connectionInfo);
![Page 19: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/19.jpg)
INSERT INTO sample VALUES(switchoffset(sysdatetimeoffset(), '+09:00'))
SELECT switchoffset(col, '+09:00') FROM sample
![Page 20: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/20.jpg)
![Page 21: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/21.jpg)
![Page 22: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/22.jpg)
http://downloads.php.net/pierre/nts vc9
※
![Page 23: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/23.jpg)
https://www.windowsazure.com/en-us/develop/php/
![Page 24: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/24.jpg)
![Page 25: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/25.jpg)
![Page 26: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/26.jpg)
![Page 27: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/27.jpg)
http://www.microsoft.com/web/downloads/?templang=ja-jp
http://windows.php.net/
![Page 28: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/28.jpg)
![Page 29: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/29.jpg)
![Page 30: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/30.jpg)
1.http://msdn.microsoft.com/en-us/library/windowsazure/gg433092.aspx
2.
3.
4.
5.
![Page 31: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/31.jpg)
<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="SimpleDemo" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
<WebRole name="WebRole" vmsize="Small">
:
<Startup>
<Task commandLine="install-php.cmd" executionContext="elevated" taskType="simple" />
</Startup>
</WebRole>
</ServiceDefinition>
@echo off
ECHO "Starting PHP Installation" >> log.txt
md "%~dp0appdata"
cd "%~dp0appdata"
cd ..
reg add "hku\.default\software\microsoft\windows\currentversion\explorer\user shell folders"
/v "Local AppData" /t REG_EXPAND_SZ /d "%~dp0appdata" /f
"%~dp0Assets\WebPICmdLine.exe" /Products:PHP53,SQLDriverPHP53IIS /AcceptEula >>log.txt 2>>err.txt
reg add "hku\.default\software\microsoft\windows\currentversion\explorer\user shell folders"
/v "Local AppData" /t REG_EXPAND_SZ /d %%USERPROFILE%%\AppData\Local /f
ECHO "Completed PHP Installation" >> log.txt
出典:http://msdn.microsoft.com/ja-jp/library/windowsazure/hh691735(v=vs.103).aspx
![Page 32: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/32.jpg)
![Page 33: PHP on Windows Azure](https://reader033.vdocuments.us/reader033/viewer/2022052910/559c1de61a28abde298b464b/html5/thumbnails/33.jpg)