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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
kouki.miura
October 18, 2025
Programming
73
0
Share
ビルトインウェブサーバーでPHP開発
PHP ビルトインウェブサーバーの紹介、注意点等。
kouki.miura
October 18, 2025
More Decks by kouki.miura
See All by kouki.miura
ポジティブアウトカムを用いた医療費削減の可能性について
koukimiura
0
29
VueSapporo#2
koukimiura
0
38
Vuetify4 v-calendarをちゃんと理解する
koukimiura
0
42
認証統合から始めるフロントエンドの機能単位開発 — マイクロサービス思想の適用
koukimiura
0
110
Fiberとは何か?PHPが“非同期言語”になった瞬間
koukimiura
0
77
VueエンジニアがReactを触って感じた_設計の違い
koukimiura
0
200
Laravel入門:最小構成で理解するMVC
koukimiura
0
130
VueSapporo#1
koukimiura
0
60
Vue.jsを10分で再定義する
koukimiura
1
65
Other Decks in Programming
See All in Programming
新規プロダクトを高速で生み出すハーネスエンジニアリング
seanchas116
3
220
Firefoxにコントリビューションして得られた学び
ken7253
2
170
運転動画を検索可能にする〜Cosmos-Embed1とDatabricks Vector Searchで〜/cosmos-embed1-databricks-vector-search
studio_graph
3
970
🦞OpenClaw works with AWS
licux
1
370
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
230
AI Agent と正しく分析するための環境作り
yoshyum
2
550
Spec-Driven Development with AI Agents (Workshop, May 2026)
antonarhipov
4
410
TypeSpec で繋ぐ複数プロダクトの型安全
maroon8021
1
140
【ディップ|26年新卒研修資料】TDD実装演習
dip_tech
PRO
0
280
関係性から理解する"同一性"の型用語たち
pvcresin
2
270
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
160
Transactional Change Stream Processing With Debezium and Apache Flink
gunnarmorling
1
110
Featured
See All Featured
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
170
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.5k
Making the Leap to Tech Lead
cromwellryan
135
9.8k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
180
Visualization
eitanlees
151
17k
SEO for Brand Visibility & Recognition
aleyda
0
4.5k
The Curious Case for Waylosing
cassininazir
1
350
Accessibility Awareness
sabderemane
1
120
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
560
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Designing Experiences People Love
moore
143
24k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
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