๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ223

asp, html, jsp, php include(์ธํด๋ฃจ๋“œ) ํ•˜๋Š” ๋ฐฉ๋ฒ•. HTML,JSP,PHP,ASP include(์ธํด๋ฃจ๋“œ) ํ•˜๋Š” ๋ฐฉ๋ฒ•. ๊ฐ ์–ธ์–ด์—์„œ ์ธํด๋ฃจ๋“œ(include)๋ฌธ์€ ๋ฐ˜๋ณต์ ์œผ๋กœ ์‚ฝ์ž…๋˜๊ฑฐ๋‚˜, ์žฌ์‚ฌ์šฉ๋˜๋Š” ์ฝ”๋“œ๋ฅผ ๋ถˆ๋Ÿฌ์˜ฌ ๋•Œ ์ฃผ๋กœ ์‚ฌ์šฉํ•œ๋‹ค. ์›น์‚ฌ์ดํŠธ๋‚˜ ์–ดํ”Œ์„ ๊ฐœ๋ฐœํ•˜๋Š” ๊ฐœ๋ฐœ์ž๋“ค์ด ํ”„๋กœ๊ทธ๋žจ์„ ์งค ๋•Œ ์ด์™ธ์—๋„ ์›นํผ๋ธ”๋ฆฌ์…”๋“ค๋„ ์ธํด๋Ÿฌ๋“œ๋ฅผ ์ž์ฃผ ํ™œ์šฉํ•œ๋‹ค. ์›นํผ๋ธ”๋ฆฌ์…”๋“ค์ด include ํ•จ์ˆ˜๋ฅผ ์ฃผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ์ด์œ ๋Š” ํ—ค๋”(Header), ํ‘ธํ„ฐ(Footer)์™€ ๋„ค๋น„๊ฒŒ์ด์…˜ ๋“ฑ์˜ ์‚ฌ์ดํŠธ ์ „๋ฐ˜์— ๊ฑธ์ณ์„œ ๊ณตํ†ต ์˜์—ญ๊ณผ ๊ฐ™์ด ๋ฐ˜๋ณต๋˜๋Š” ์˜์—ญ์„ ํ‘œํ˜„ํ•˜๊ธฐ ์œ„ํ•ด ์“ด๋‹ค. ์ด๋ ‡๊ฒŒ ์ธํด๋ฃจ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด, ํ”„๋กœ์ ํŠธ ์ง„ํ–‰ ์ค‘ ๊ณตํ†ต์˜์—ญ์˜ ์ˆ˜์ •๊ณผ ๊ด€๋ฆฌ๊ฐ€ ์šฉ์ด ํ•˜๋‹ค๋Š” ์žฅ์ ์ด ์žˆ๋‹ค. ํ•˜์ง€๋งŒ, ์ œ๋ชฉ์— HTML ์ธํด๋ฃจ๋“œ ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์ผ์ง€๋งŒ HTML์€ include๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š๋Š”๋‹ค. ๋”ฐ๋ผ์„œ ์›น์„œ๋ฒ„ ํ™˜๊ฒฝ์ด ๊ตฌ์ถ•๋˜์ง€ ์•Š๊ณ  ๋‹จ์ˆœ.. 2018. 12. 11.