Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP - Be Happy with PHP

PHP - Be Happy with PHP

#phpapoc

4564d3601f6230782300dff8499b2d5a?s=128

Sotaro Karasawa

December 17, 2011
Tweet

More Decks by Sotaro Karasawa

Other Decks in Technology

Transcript

  1. PHP Be Happy with PHP

  2. Self Introduction

  3. sotarok Sotaro Karasawa / @sotarok Crocos, Inc. Ethna git-daily

  4. Crocos, Inc.

  5. Ethna http://ethna.jp/

  6. git-daily http://speakerdeck.com/u/sotarok/p/git-daily-a-tool-supports-a-daily-workflow-with-remote

  7. None
  8. 2005೥͘Β͍: First contact

  9. 2006೥06݄05೔

  10. 2006 ͳΜ͔ϞόΠϧͳ΢ΣϒαʔϏεΛ࡞ͬ ͯͨ

  11. 2007 @ όΠτ XOOPS Λվ଄ͯ͠΢ΣϒαʔϏεΛͭͬͯ͘ ͨ XOOPS ͷ؅ཧը໘ͷ಺෦ͰMVCతͳ΋ͷΛ ࣗ࡞ PHP

    ษڧձ Ethna
  12. 2008 Twitter Ethna Mozilla, JavaScript, Firefox Extension OpenSource

  13. 2009 Python PFI C++

  14. 2010 େֶӃ → GR*E, Inc. ύʔϑΣΫτPHP

  15. 2011 GR*E, Inc. → Crocos, Inc.

  16. ࠓ೔ͷ࿩ͷલఏ

  17. ౰ͨΓલͷ࿩Λ͠·͢ ※ݸਓͷ؍఺Ͱ͢

  18. ࢀߟจݙ

  19. 1. ͜͜Ζ͕·͑ 2. ੍໿ 3. ίϛϡχέʔγϣϯ Topic

  20. ͜͜Ζ͕·͑ͷ࿩

  21. 1. PHP dis ͷ࿩

  22. ݁࿦: dis Βͳ͍

  23. 2छྨͷdis PHP ΛѪ͍͗ͯ͢͠Δਓͷ dis PHP ΛΑ͘஌Βͳ͍ਓͷ dis

  24. ੈͷதͷߏਤ Ѫ͗ͯ͢͠ dis

  25. ੈͷதͷߏਤ Ѫ͗ͯ͢͠ dis Ѫ͗͢͠ ͷਓ

  26. ੈͷதͷߏਤ Ѫ͗ͯ͢͠ dis Ѫ͗͢͠ ͷਓ

  27. ੈͷதͷߏਤ Ѫ͗ͯ͢͠ dis Α͘ ஌Βͳ͍ έυdis

  28. ੈͷதͷߏਤ Ѫ͗ͯ͢͠ dis Α͘ ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis Α͘

    ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis Α ஌Β έ Α͘ ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis ஌Βͳ͍ έυdis Α͘ ஌Βͳ͍ έυdis
  29. dis Δ͜ͱ ≠ ໰୊Λೝࣝ͢Δ͜ͱ

  30. dis Βͳ͍͜ͱ ≠ ໰୊͕Θ͔ͬͯͳ͍͜ͱ

  31. ݁Ռͱͯ͠: ָ͘͠ͳ͍

  32. ໰୊ͷೝࣝɾڞ༗

  33. None
  34. None
  35. ੍໿ͷ࿩

  36. νʔϜ։ൃͷ࿩

  37. খن໛ͳνʔϜɾখن໛ͳΞϓϦέʔγϣϯ ୭͕ͳʹΛॻ͍͔͕ͨΘ͔Δ ΈΜͳɺͲ͏ॻ͚͹Α͍͔͕Θ͔ͬͯΔ

  38. ʮۭؾΛಡΉʯ͕௨༻͠ͳ͘ͳΔॠؒ

  39. ʮ͜Μͳίʔυී௨ʹߟ͑ͨΒॻ͔ͳ͍ͬ ͠ΐʯ ͜Μͳίʔυͬͯʁ ී௨ͬͯʁ ୭ͷதͷʮී௨ʯ͔

  40. ڭҭ: ৽͍͠ਓ͕ೖ͖ͬͯͨͱ͖ɺʮී ௨ʯͱ͍͏ೝࣝΛڞ༗ͤ͞Δ͜ͱ ن໿ : ڞ༗͢ΔͨΊʹఆΊΔ΂͖࿮૊Έ

  41. ࿮૊Έͮ͘Γ ৘ใͷڞ༗ Wiki ͱ͔ ςετ ษڧձ ίʔυϨϏϡʔ

  42. PHP Ͱָ͘͠։ൃ ॊೈੑ ≠ ϑϦʔμϜ PHP ͷಛੑ্ɺʮͲ͜ʹԿΛॻ͍ͯ΋ͳΜͱ ͳ͘͏͘͝ʯ͸ଘࡏ͢Δ ͭ·ΓɺͲ͜ʹͲ͏͍͏ίʔυΛॻ͍ͯ΋ େৎ෉

    ͑ɺϗϯτʁ
  43. ϑϨʔϜϫʔΫ

  44. ϑϨʔϜϫʔΫ͸࿮૊Έ νʔϜʹٻΊΒΕΔϑϨʔϜϫʔΫ ଍Γͯͳ͍͔ ಥͬ૸ͬͯͳ͍͔

  45. ʮϑϨʔϜϫʔΫͷ࢖͍ํΛ͍֮͑ͨΜ ͡Όͳ͍ɺΞϓϦΛ࡞Γ͍ͨΜͩʯ

  46. ...!

  47. ͜ͷ࿩͸·ͱΊ͕ࢥ͍͔ͭͳ͔ͬͨ

  48. ίϛϡχέʔγϣϯ

  49. ͲͷϨϕϧͷίϛϡχέʔγϣϯΛͱΔ΂͖ ͔ ϑϨʔϜϫʔΫͷ࢓༷͕͔͑·ͨ͠ɺͱ͍ ͏ใࠂ ϑϨʔϜϫʔΫͷ࢓༷Λม͍͑ͨΜͰ͚͢ Ͳɺͱ͍͏૬ஊ ࣮૷Λ. .. ?

  50. 1. ϓϩάϥϚ͕ίʔυΛॻ͘͏͑Ͱ

  51. 1. ϓϩάϥϚ͕ίʔυΛॻ͘͏͑Ͱ ͦΕ͸͋ͳͨ΁ͷdisͰ͸ͳ͍ ίʔυͷdisΛ͋ͳͨͷ൱ఆͱଊ͑ͳ͍ ʮͳΜͰ͜͏ͳͬͯΜͷʁʯ ཧ༝͕͋Ε͹આ໌͢Ε͹͍͍ɻͦΕ͕ਖ਼͍͠ ͱࢥ͏ͳΒओு͢Ε͹͍͍ɻ ίʔυ͕μϝͳΒ௚ͤ͹͍͍ ͨͩͦΕ͚ͩͩ

  52. 2. ΤϥΠਓ͕໨ࢦ͞ͳ͖Ό͍͚ͳ͍΋ͷ

  53. ιʔείʔυΛdisΕΔ؀ڥ ίʔυϨϏϡʔͱ͔

  54. ͍͞͝ʹͪΐͬͱٕज़ͷ࿩

  55. PHP 5.4 Ͱ༡΅͏

  56. Debian (Ubuntu) ΦϨΦϨ .deb http://php.marvel.strk.jp/deb/ $ dpkg -i php5_5.4.0-0....deb Debian

    ͷਓ ͱΓ͋͑ͣ↑͔Β
  57. CentOS ͦͷଞ Debian Λ࢖͏

  58. CentOS ͦͷଞ Debian Λ࢖͏ Debian ͷਓ ͱΓ͋͑ͣ↑͔Β CentOS ͷਓ

  59. ※ xdebug ͸͙ͤΔ ※ GCؔ࿈Ͱ͙ͤͬͯͨ →ͳΜ͔࣏ͬͨʁ

  60. ͓ΘΓ