+ All Categories
Home > Technology > PHP on Windows Azure

PHP on Windows Azure

Date post: 08-Jul-2015
Category:
Upload: microsoft-openness-japan
View: 186 times
Download: 0 times
Share this document with a friend
33
Transcript
Page 1: PHP on Windows Azure
Page 2: PHP on Windows Azure

Linux

Database

kuniteru.asamiFind me

Page 3: PHP on Windows Azure
Page 4: PHP on Windows Azure
Page 5: PHP on Windows Azure
Page 6: PHP on Windows Azure
Page 7: PHP on Windows Azure
Page 8: PHP on Windows Azure
Page 9: PHP on Windows Azure

Page 10: PHP on Windows Azure
Page 11: PHP on Windows Azure
Page 13: PHP on Windows Azure

http://cisqlsrvuni.codeplex.com/

icacls ..\approot\temp /grant "IIS_IUSRS":F /T

Page 15: PHP on Windows Azure
Page 17: PHP on Windows Azure

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

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

INSERT INTO sample VALUES(switchoffset(sysdatetimeoffset(), '+09:00'))

SELECT switchoffset(col, '+09:00') FROM sample

Page 20: PHP on Windows Azure
Page 21: PHP on Windows Azure
Page 22: PHP on Windows Azure

http://downloads.php.net/pierre/nts vc9

Page 24: PHP on Windows Azure
Page 25: PHP on Windows Azure
Page 26: PHP on Windows Azure
Page 28: PHP on Windows Azure
Page 29: PHP on Windows Azure
Page 31: PHP on Windows Azure

<?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
Page 33: PHP on Windows Azure

Recommended