--- id: php-intro title: "PHP Intro" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["What is PHP", "PHP μ†Œκ°œ"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.88 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["php", "programming", "w3schools", "intro"] raw_sources: ["https://www.w3schools.com/php/php_intro.asp"] applied_in: [] github_commit: "" --- # [[PHP Intro]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) PHP is explicitly framed as server-executed β€” code runs on the server and only the resulting HTML reaches the browser, meaning PHP source is never visible to the client, unlike JavaScript which ships as readable source to the browser. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **PHP** β€” "PHP: Hypertext Preprocessor"; a widely-used, open source, server-side scripting language. [S1] - **Server-side execution** β€” PHP scripts run on the server; the result is returned to the browser as HTML. [S1] - **Platform/server compatibility** β€” runs on Windows/Linux/Unix/Mac; works with Nginx/Apache/IIS/Cloudflare. [S1] - **Database support** β€” MySQL, PostgreSQL, MS SQL, DB2, Oracle, MongoDB, etc. [S1] - **`.php` file extension** β€” files can mix text, HTML, CSS, JavaScript, and PHP code. [S1] - **PHP 8 highlights** β€” JIT compiler, Union Types, Named Arguments, Match Expressions, Nullsafe Operator (`?->`), Attributes, new functions (`str_contains()`, etc.). [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - What PHP can do: generate dynamic content, manage files, collect form data, handle cookies, modify databases, control access, encrypt data, output non-HTML formats (images, PDF, XML). [S1] - Prerequisite knowledge: HTML, CSS, JavaScript basics recommended before starting PHP. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) μ†ŒμŠ€μ—μ„œ λͺ¨μˆœλ˜λŠ” μ •λ³΄λŠ” λ°œκ²¬λ˜μ§€ μ•ŠμŒ. ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” λŒ€ν˜• λΈ”λ‘œκ·Έ μ‹œμŠ€ν…œκ³Ό μ†Œμ…œ λ„€νŠΈμ›Œν¬κ°€ PHP 기반으둜 μš΄μ˜λœλ‹€λŠ” 점이 μ–ΈκΈ‰λœλ‹€. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) ν•΄λ‹Ή μ±•ν„°λŠ” κ°œλ… μ†Œκ°œ μ€‘μ‹¬μœΌλ‘œ 별도 μ½”λ“œ μ˜ˆμ œκ°€ μ—†μŒ β€” λ‹€μŒ 챕터([[PHP Install]])μ—μ„œ μ‹€ν–‰ ν™˜κ²½ 섀정이 μ‹œμž‘λœλ‹€. ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.88 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[PHP Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[PHP Install]], [[PHP Syntax]] - **μ°Έμ‘° λ§₯락:** PHP νŠœν† λ¦¬μ–Όμ˜ λ„μž…λΆ€ β€” μ„€μΉ˜/문법 μ±•ν„°λ‘œ 이어짐. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” PHP Introduction β€” https://www.w3schools.com/php/php_intro.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "PHP Introduction" page (Astra wiki-curation, P-Reinforce v3.1 format).