Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PHP - Be Happy with PHP
Search
Sotaro Karasawa
December 17, 2011
Technology
2
1.2k
PHP - Be Happy with PHP
#phpapoc
Sotaro Karasawa
December 17, 2011
Tweet
Share
More Decks by Sotaro Karasawa
See All by Sotaro Karasawa
ソフトウェアxスタートアップから見た飲食と配送の世界 / The World of Food Deliverlies and Restaurant Businesses from a Software and Startup Perspective
sotarok
2
1.2k
CTO 3度目の正直 / My 3rd CTO Career
sotarok
20
9.7k
Introduction to the Corporate Solutions Engineering at MTC2018
sotarok
1
36k
Mercari meetup for Corporate Engineering #1 / What is "Corporate Engineering"?
sotarok
2
2.3k
Markdown and WYSIWYG
sotarok
1
5.9k
20 Jan 2017 / Moving Beyond Borders - Mercari DAY
sotarok
8
15k
PHPBLT の心得 / PHPBLT #5 @ペパボ
sotarok
5
3.4k
Wiki についての今昔物語 / Crowi
sotarok
5
14k
PHPでダイエット / Dietcube #phpblt
sotarok
2
4.3k
Other Decks in Technology
See All in Technology
EventHub Startup CTO of the year 2024 ピッチ資料
eventhub
0
110
SSMRunbook作成の勘所_20241120
koichiotomo
2
130
TanStack Routerに移行するのかい しないのかい、どっちなんだい! / Are you going to migrate to TanStack Router or not? Which one is it?
kaminashi
0
580
第1回 国土交通省 データコンペ参加者向け勉強会③- Snowflake x estie編 -
estie
0
130
Platform Engineering for Software Developers and Architects
syntasso
1
520
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
3.8k
Oracle Cloud Infrastructureデータベース・クラウド:各バージョンのサポート期間
oracle4engineer
PRO
28
12k
これまでの計測・開発・デプロイ方法全部見せます! / Findy ISUCON 2024-11-14
tohutohu
3
370
OCI 運用監視サービス 概要
oracle4engineer
PRO
0
4.8k
[FOSS4G 2024 Japan LT] LLMを使ってGISデータ解析を自動化したい!
nssv
1
210
AWS Lambda のトラブルシュートをしていて思うこと
kazzpapa3
2
170
社内で最大の技術的負債のリファクタリングに取り組んだお話し
kidooonn
1
550
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Visualization
eitanlees
145
15k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Gamification - CAS2011
davidbonilla
80
5k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Side Projects
sachag
452
42k
Making Projects Easy
brettharned
115
5.9k
KATA
mclloyd
29
14k
Site-Speed That Sticks
csswizardry
0
23
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ؔ࿈Ͱ͙ͤͬͯͨ →ͳΜ͔࣏ͬͨʁ
͓ΘΓ