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

php4

- php ์—‘์…€ ๋‹ค์šด๋กœ๋“œ ํ•œ๊ธ€ ๊นจ์ง ๋ฌธ์ œ ํ•ด๊ฒฐ php๋กœ ์ œ์ž‘๋œ ์›น์‚ฌ์ดํŠธ์—์„œ ์—‘์…€ ๋‹ค์šด๋กœ๋“œ๋ฅผ ๋ฐ›๋Š”๋ฐ ํ•œ๊ธ€๋กœ ๋œ ์—‘์…€ ํŒŒ์ผ๋ช…์ด ๊นจ์ง€๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค. ๋ฌธ์„œ ์ œ๋ชฉ์ด ์—‘์…€ ๋‹ค์šด๋กœ๋“œ์ด๋‹ค๋ณด๋‹ˆ, ms ์—‘์…€ 2010 ๋‹ค์šด ๊ฐ™์€ ๊ฒƒ์„ ๊ธฐ๋Œ€ํ•˜๊ณ  ๋“ค์–ด์˜จ ๋ถ„๋“ค์ด ๋งŽ์€ ๊ฒƒ ๊ฐ™๋‹ค. ๊ทธ๋Ÿฐ ๋ถ„๋“ค์€ ์ด ๊ณณ์„ ์ฐธ์กฐ! ์—‘์…€ 2010 ๋ฌด๋ฃŒ ๋‹ค์šด ์—‘์…€ 2010 ๋ฌด๋ฃŒ ๋‹ค์šด ํŒŒ์›Œํฌ์ธํŠธ 2010 ๋ฌด๋ฃŒ์„ค์น˜ ๋งˆ์ดํฌ๋กœ์†Œํ”„ํŠธ ์—‘์…€ 2010 ๋ฌด๋ฃŒ ๋‹ค์šด ๋กœ๋“œ ์„ค์น˜ blog1.ezip2020.com ์˜ˆ์ „์—๋Š” ์ž˜ ๋˜๋‹ค๊ฐ€ ๊ฐ‘์ž๊ธฐ ์•ˆ๋œ๋‹ค๋Š” ๋ณด๊ณ ๊ฐ€ ์ƒ๊ธฐ๋Š”๋ฐ, ๊ทธ๋Ÿด๋ฆฌ๋Š” ์—†๋‹ค. ์ฒ˜์Œ๋ถ€ํ„ฐ ์•ˆ๋˜๋Š” ๊ฒƒ์ด๋‹ค. ํฌ๋กฌ ๋ธŒ๋ผ์šฐ์ €์—์„œ๋Š” ํ•œ๊ธ€ ํŒŒ์ผ๋ช…์œผ๋กœ ์—‘์…€ ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ๊ฐ€ ๊ฐ€๋Šฅํ•˜์ง€๋งŒ IE์—์„œ๋Š” ํ•œ๊ธ€ ํŒŒ์ผ๋ช…์˜ ํ•œ๊ธ€์ด ๊นจ์ง€๊ณ  ์ด์ƒํ•œ ๋ฌธ์ž๋กœ ๋งŒ๋“ค์–ด์„œ ์—‘์…€ ํŒŒ์ผ๋ช…๊นŒ์ง€ ์ธ์‹์ด ์•ˆ๋˜๋Š” ๋ฌธ์ œ๊ฐ€ ์ƒ๊ธด๋‹ค. ๋ณดํ†ต php ์—‘์…€ ๋‹ค์šด๋กœ๋“œ ์†Œ์Šค๋Š” ๋‹ค์Œ๊ณผ.. 2020. 9. 11.
โœˆ php include๋กœ ํŒŒ๋ผ๋ฏธํ„ฐ ๊ฐ’๋„˜๊ธฐ๊ธฐ (php include parameters) & php switch case ๋ถ„๊ธฐ ์ฒ˜๋ฆฌ php include๋กœ ํŒŒ๋ผ๋ฏธํ„ฐ ๊ฐ’ ๋„˜๊ธฐ๊ธฐ (php include parameters) ์ฃผ์†Œ ๋’ค์— ?id=1๊ณผ ๊ฐ™์ด ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ๋ถ™์—ฌ์„œ include๋ฅผ ํ•  ์ˆ˜๋Š” ์—†๋‹ค. ๋Œ€์‹  php์˜ include๋Š” ๋ณ„๋„์˜ ์Šค์ฝ”ํ”„(scope)๋ฅผ ๊ฐ€์ง€์ง€ ์•Š์œผ๋ฏ€๋กœ ์„ค์ •๋œ ๋ณ€์ˆ˜๋ฅผ ํ•จ๊ป˜ ๊ณต์œ ํ•œ๋‹ค. ๋”ฐ๋ผ์„œ ์™€ ๊ฐ™์ด ์„ ์–ธํ•˜๊ณ  ๋ฐ›๋Š” ์ธก ์ฆ‰ ์œ„์˜ ๊ฒฝ์šฐ๋ผ๋ฉด list_contents_card_toolbar.php๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ๋ฐ›๋Š”๋‹ค. php switch case ๋ถ„๊ธฐ ์ฒ˜๋ฆฌ๋Š” ์œ„์™€ ๊ฐ™์ด ํ•œ๋‹ค. 2019. 9. 26.
โœˆ nginx woff mime type error ์„ค์ • ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• Unexpected character in input: ์—๋Ÿฌ nginx woff mime type error ์„ค์ • ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• Unexpected character in input: ์—๋Ÿฌ 2019/07/25 15:19:07 [error] 25892#24016: *313 FastCGI sent in stderr: "PHP Warning: Unexpected character in input: ' ' (ASCII=11) state=0 in C:\work\cj_003\dcms-ui\assets\fonts\glyphicons-halflings-regular.woff2 on line 100 PHP Warning: Unexpected character in input: '' (ASCII=16) state=0 in C:\work\cj_003\dcms-ui\assets\font.. 2019. 7. 26.
โœˆphp $_SERVER (์„œ๋ฒ„ํ•จ์ˆ˜) ์˜ˆ์ œ php๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์›นํ”„๋กœ๊ทธ๋ž˜๋ฐ์„ ํ•˜๋‹ค๋ณด๋ฉด ์„œ๋ฒ„ํ™˜๊ฒฝ์ด๋‚˜ ์‚ฌ์šฉ์ž์˜ ์‚ฌ์šฉํ™˜๊ฒฝ ์ •๋ณด๋ฅผ ์„œ๋ฒ„์‚ฌ์ด๋“œ์—์„œ ์ˆ˜์ง‘ํ•  ํ•„์š”๊ฐ€ ์žˆ์„ ๋•Œ๊ฐ€ ์žˆ๋‹ค. php์—์„œ๋„ ๋‹น์—ฐํžˆ ์„œ๋ฒ„ํ™˜๊ฒฝ์ด๋‚˜ ์‚ฌ์šฉ์žํ™˜๊ฒฝ ์˜ˆ์ปจ๋ฐ ์ ‘์†์ž์˜ ์•„์ดํ”ผ์ฃผ์†Œ๋ผ๋“ ์ง€, ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์˜ USER_Agent์™€ ๊ฐ™์€ ์ •๋ณด๋“ค์„ ์ˆ˜์ง‘ํ•  ์ˆ˜ ์žˆ๋Š” ํ•จ์ˆ˜๋“ค์ด ๋งˆ๋ จ๋˜์–ด ์žˆ๋‹ค. ์ด๋ฅผ ํ†ต์นญํ•ด์„œ ์„œ๋ฒ„ํ•จ์ˆ˜๋ผ ์นญํ•˜๊ณ  php์—์„œ๋Š” $_SERVER์˜ ๋ฐฐ์—ด ํ˜•ํƒœ๋กœ ์“ธ ์ˆ˜ ์žˆ๋‹ค. ์‚ฌ์šฉ ์˜ˆ์ œ๋“ค์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค. ์‹ค์ œ ๋™์ž‘ ๋ฐ๋ชจํŽ˜์ด์ง€๋Š” ์ด ๊ณณ์„ ํด๋ฆญ. $_SERVER['DOCUMENT_ROOT'] = ์‚ฌ์ดํŠธ๊ฐ€ ํ˜„์žฌ ์œ„์น˜ํ•œ ์„œ๋ฒ„์ƒ์˜ ํด๋” ์œ„์น˜ = /home/hosting_users/rsl2_stspace/www $_SERVER['SCRIPT_FILENAME'] = ์‹คํ–‰๋˜๊ณ  ์žˆ๋Š” php๋ฌธ์„œ์˜ ์œ„์น˜์™€ ํŒŒ์ผ๋ช… = /.. 2019. 7. 14.