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開発
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
kouki.miura
October 18, 2025
Programming
70
0
Share
ビルトインウェブサーバーでPHP開発
PHP ビルトインウェブサーバーの紹介、注意点等。
kouki.miura
October 18, 2025
More Decks by kouki.miura
See All by kouki.miura
VueSapporo#2
koukimiura
0
31
Vuetify4 v-calendarをちゃんと理解する
koukimiura
0
30
認証統合から始めるフロントエンドの機能単位開発 — マイクロサービス思想の適用
koukimiura
0
99
Fiberとは何か?PHPが“非同期言語”になった瞬間
koukimiura
0
71
VueエンジニアがReactを触って感じた_設計の違い
koukimiura
0
190
Laravel入門:最小構成で理解するMVC
koukimiura
0
110
VueSapporo#1
koukimiura
0
52
Vue.jsを10分で再定義する
koukimiura
1
58
なぜVue開発は速いのか?-Vite入門
koukimiura
0
78
Other Decks in Programming
See All in Programming
t *testing.T は どこからやってくるの?
otakakot
1
890
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
420
Claude Code × Gemini × Ebitengine ゲーム制作素人WebエンジニアがGoでゲームを作った話
webzawa
0
210
クラウドネイティブなエンジニアに向ける Raycastの魅力と実際の活用事例
nealle
2
230
AI-DLC Deep Dive
yuukiyo
9
5.4k
ついに来た!本格的なマルチクラウド時代の Google Cloud
maroon1st
0
360
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
330
10 Tips of AWS ~Gen AI on AWS~
licux
5
530
AIを導入する前にやるべきこと
negima
2
320
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
130
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
970
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
460
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
900
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
290
Chasing Engaging Ingredients in Design
codingconduct
0
180
Heart Work Chapter 1 - Part 1
lfama
PRO
6
35k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
Into the Great Unknown - MozCon
thekraken
41
2.4k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Speed Design
sergeychernyshev
33
1.6k
The Curse of the Amulet
leimatthew05
1
12k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
380
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
790
Transcript
ビルトインウェブサーバーでPHP開発 2025.10.18 第6回 札幌PHP勉強会 三浦 恒樹 (MIURA KOUKI) 診療情報管理士 上級医療情報技師
医用画像情報専門技師 ドゥウェル株式会社
長男が飼っている ハリネズミがアイコン INTRODUCE ・ドゥウェル株式会社 (医療系IT開発・導入会社)に所属 ・マネージャー(プレイング・マネージャー) ・TypeScript, Vue.js, Node.js, Java,C#,
PHP ・3児の父 ・休日は子どものサッカー観戦 ・参加している勉強会 札幌PHP勉強会、JBUG札幌、JavaDO、ゆるWeb勉強会、えびてく、 クラメソ札幌IT勉強会(仮)、AWS初心者LT会in札幌、 札幌すごいAI会、札幌IT石狩鍋、函館本線沿線勉強会 等
・ビルトインウェブサーバーとは? ・起動してみる ・ドキュメントルートを指定して起動してみる ・ルータースクリプトを指定して起動してみる ・デバッグしてみる ・ビルトインウェブサーバーの注意点 ・まとめ INDEX
ビルトインウェブサーバーとは? PHPにはWeb サーバー機能が内 蔵されている。
起動してみる .html, .css, .js, .png等に対応
起動してみる index.htmlを表 示できた
ドキュメントルートを指定して起動してみる アプリ構成に合わ せてpublicフォ ルダ等をルートに できる
ドキュメントルートを指定して起動してみる public/index. htmlを表示でき た
ルータースクリプトを指定して起動してみる index.php、router.phpを配置して、 router.phpを指定して起動する。
ルータースクリプトを指定して起動してみる どんなURLでも 指定したルーター スクリプトが表示 される
デバッグしてみる デバッガーを起動す るjson。F5で起動。 ブレークポイ ントを設置 ビルトインウェブ サーバーを起動
ビルトインウェブサーバーの注意点 ・本番環境では使用できない(シングルスレッドのため) ・index.php または index.html があると、404が発生しない
・PHP5.4以降、開発に使用できるウェブサーバーが組み込まれている ・ドキュメントルートを指定できる ・ルータースクリプトを指定できる ・URLのファイルがない場合、ドキュメントルートまで index.php または index.html を探す ・index.php または
index.html が見つかる場合、404エラーは発生しない ・ビルトインウェブサーバー経由のデバッグも可能 ご清聴ありがとうございました。 まとめ
Xdebug インストール 1. phpinfo()出力結果をコピー 2. Xdebug Installation Wizardに1をペースト https://xdebug.org/wizard 3.
DLLをダウンロード→”php_xdebug.dll”にリネーム 4. phpルート/extに3を移動 5. php.iniに以下を追記 extension_dir = "ext" zend_extension="xdebug" xdebug.mode=debug xdebug.start_with_request=yes