Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
PHP - Be Happy with PHP
Search
Sotaro Karasawa
December 17, 2011
Technology
1.2k
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
PHP - Be Happy with PHP
#phpapoc
Sotaro Karasawa
December 17, 2011
More Decks by Sotaro Karasawa
See All by Sotaro Karasawa
「事業目線」の正体 〜3つのフェーズのCTO経験から見えてきた、EMが持つべき視点 @ EMConf JP 2026
sotarok
9
8.8k
大「個人開発サービス」時代に僕たちはどう生きるか
sotarok
23
14k
P2B Haus法人サポータープランのご提案
sotarok
2
1.7k
ソフトウェアxスタートアップから見た飲食と配送の世界 / The World of Food Deliverlies and Restaurant Businesses from a Software and Startup Perspective
sotarok
2
1.4k
CTO 3度目の正直 / My 3rd CTO Career
sotarok
21
11k
Introduction to the Corporate Solutions Engineering at MTC2018
sotarok
1
36k
Mercari meetup for Corporate Engineering #1 / What is "Corporate Engineering"?
sotarok
2
2.5k
Markdown and WYSIWYG
sotarok
1
6.5k
20 Jan 2017 / Moving Beyond Borders - Mercari DAY
sotarok
8
16k
Other Decks in Technology
See All in Technology
SREは、MCPとAutopilotをこう使え!
kazumax55
1
150
omasushiというライブラリを作った
polidog
PRO
0
220
家のリアーキテクト・リファクタリング
suguruooki
0
140
アプリをもっと"iOSアプリっぽく"する小さな工夫 / Small Touches That Make Your App Feel More Like an iOS App
matsuji
1
780
Adaptive Warehouse を今すぐ導入すべき理由と迷ったときの判断基準
__allllllllez__
0
210
DEFCON_CHV_CTF_Write-up.pdf
bata_24
0
150
Deployment の 先にある AI Agent 基盤 - kagent vNext、Agent Substrate、Hermes から読み解く Agent Runtime の現在地 / k8s-matsuri-2-ai-agent-platform-amsy810
masayaaoyama
3
300
ペアプロの価値はコードを書くことだけじゃない
codmoninc
PRO
0
220
Tab5をRubyで動くパソコンにする
kishima
2
360
Microsoft 365 Copilot chat -tekoälypalvelun tietosuojaongelmat
hponka
0
840
銀行勘定系システムにおける開発プロセス刷新×AIによる環境モダナイゼーション / Development Process Transformation and AI-Driven Environment Modernization
muit
0
860
Claude Code本って、 読む必要あるの?
oikon48
2
440
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
330
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
690
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
Side Projects
sachag
456
43k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Facilitating Awesome Meetings
lara
57
7.1k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
390
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
400
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
250
Transcript
PHP Be Happy with PHP
Self Introduction
sotarok Sotaro Karasawa / @sotarok Crocos, Inc. Ethna git-daily
Crocos, Inc.
Ethna http://ethna.jp/
git-daily http://speakerdeck.com/u/sotarok/p/git-daily-a-tool-supports-a-daily-workflow-with-remote
None
2005͘Β͍: First contact
200606݄05
2006 ͳΜ͔ϞόΠϧͳΣϒαʔϏεΛ࡞ͬ ͯͨ
2007 @ όΠτ XOOPS Λվͯ͠ΣϒαʔϏεΛͭͬͯ͘ ͨ XOOPS ͷཧը໘ͷ෦ͰMVCతͳͷΛ ࣗ࡞ PHP
ษڧձ Ethna
2008 Twitter Ethna Mozilla, JavaScript, Firefox Extension OpenSource
2009 Python PFI C++
2010 େֶӃ → GR*E, Inc. ύʔϑΣΫτPHP
2011 GR*E, Inc. → Crocos, Inc.
ࠓͷͷલఏ
ͨΓલͷΛ͠·͢ ※ݸਓͷ؍Ͱ͢
ࢀߟจݙ
1. ͜͜Ζ͕·͑ 2. ੍ 3. ίϛϡχέʔγϣϯ Topic
͜͜Ζ͕·͑ͷ
1. PHP dis ͷ
݁: dis Βͳ͍
2छྨͷdis PHP ΛѪ͍͗ͯ͢͠Δਓͷ dis PHP ΛΑ͘Βͳ͍ਓͷ dis
ੈͷதͷߏਤ Ѫ͗ͯ͢͠ dis
ੈͷதͷߏਤ Ѫ͗ͯ͢͠ dis Ѫ͗͢͠ ͷਓ
ੈͷதͷߏਤ Ѫ͗ͯ͢͠ dis Ѫ͗͢͠ ͷਓ
ੈͷதͷߏਤ Ѫ͗ͯ͢͠ dis Α͘ Βͳ͍ έυdis
ੈͷதͷߏਤ Ѫ͗ͯ͢͠ dis Α͘ Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Α͘
Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Α Β έ Α͘ Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Α͘ Βͳ͍ έυdis Βͳ͍ έυdis Α͘ Βͳ͍ έυdis
dis Δ͜ͱ ≠ Λೝࣝ͢Δ͜ͱ
dis Βͳ͍͜ͱ ≠ ͕Θ͔ͬͯͳ͍͜ͱ
݁Ռͱͯ͠: ָ͘͠ͳ͍
ͷೝࣝɾڞ༗
None
None
੍ͷ
νʔϜ։ൃͷ
খنͳνʔϜɾখنͳΞϓϦέʔγϣϯ ୭͕ͳʹΛॻ͍͔͕ͨΘ͔Δ ΈΜͳɺͲ͏ॻ͚Α͍͔͕Θ͔ͬͯΔ
ʮۭؾΛಡΉʯ͕௨༻͠ͳ͘ͳΔॠؒ
ʮ͜Μͳίʔυී௨ʹߟ͑ͨΒॻ͔ͳ͍ͬ ͠ΐʯ ͜Μͳίʔυͬͯʁ ී௨ͬͯʁ ୭ͷதͷʮී௨ʯ͔
ڭҭ: ৽͍͠ਓ͕ೖ͖ͬͯͨͱ͖ɺʮී ௨ʯͱ͍͏ೝࣝΛڞ༗ͤ͞Δ͜ͱ ن : ڞ༗͢ΔͨΊʹఆΊΔ͖Έ
Έͮ͘Γ ใͷڞ༗ Wiki ͱ͔ ςετ ษڧձ ίʔυϨϏϡʔ
PHP Ͱָ͘͠։ൃ ॊೈੑ ≠ ϑϦʔμϜ PHP ͷಛੑ্ɺʮͲ͜ʹԿΛॻ͍ͯͳΜͱ ͳ͘͏͘͝ʯଘࡏ͢Δ ͭ·ΓɺͲ͜ʹͲ͏͍͏ίʔυΛॻ͍ͯ େৎ
͑ɺϗϯτʁ
ϑϨʔϜϫʔΫ
ϑϨʔϜϫʔΫΈ νʔϜʹٻΊΒΕΔϑϨʔϜϫʔΫ Γͯͳ͍͔ ಥͬͬͯͳ͍͔
ʮϑϨʔϜϫʔΫͷ͍ํΛ͍֮͑ͨΜ ͡Όͳ͍ɺΞϓϦΛ࡞Γ͍ͨΜͩʯ
...!
͜ͷ·ͱΊ͕ࢥ͍͔ͭͳ͔ͬͨ
ίϛϡχέʔγϣϯ
ͲͷϨϕϧͷίϛϡχέʔγϣϯΛͱΔ͖ ͔ ϑϨʔϜϫʔΫͷ༷͕͔͑·ͨ͠ɺͱ͍ ͏ใࠂ ϑϨʔϜϫʔΫͷ༷Λม͍͑ͨΜͰ͚͢ Ͳɺͱ͍͏૬ஊ ࣮Λ. .. ?
1. ϓϩάϥϚ͕ίʔυΛॻ͘͏͑Ͱ
1. ϓϩάϥϚ͕ίʔυΛॻ͘͏͑Ͱ ͦΕ͋ͳͨͷdisͰͳ͍ ίʔυͷdisΛ͋ͳͨͷ൱ఆͱଊ͑ͳ͍ ʮͳΜͰ͜͏ͳͬͯΜͷʁʯ ཧ༝͕͋Εઆ໌͢Ε͍͍ɻͦΕ͕ਖ਼͍͠ ͱࢥ͏ͳΒओு͢Ε͍͍ɻ ίʔυ͕μϝͳΒ͍͍ͤ ͨͩͦΕ͚ͩͩ
2. ΤϥΠਓ͕ࢦ͞ͳ͖Ό͍͚ͳ͍ͷ
ιʔείʔυΛdisΕΔڥ ίʔυϨϏϡʔͱ͔
͍͞͝ʹͪΐͬͱٕज़ͷ
PHP 5.4 Ͱ༡΅͏
Debian (Ubuntu) ΦϨΦϨ .deb http://php.marvel.strk.jp/deb/ $ dpkg -i php5_5.4.0-0....deb Debian
ͷਓ ͱΓ͋͑ͣ↑͔Β
CentOS ͦͷଞ Debian Λ͏
CentOS ͦͷଞ Debian Λ͏ Debian ͷਓ ͱΓ͋͑ͣ↑͔Β CentOS ͷਓ
※ xdebug ͙ͤΔ ※ GCؔ࿈Ͱ͙ͤͬͯͨ →ͳΜ͔࣏ͬͨʁ
͓ΘΓ