베리베리514 [PHP] 파일 UTF-8저장시 BOM(Byte Order Mark) 의 문제....... 에디트 플러스를 이용해 UTF-8 로 저장을 하게 되면 BOM 이생긴다. 그로 인해 session_start(); 와 같은 함수가 사용될시 headers already sent 에러가 발생이 된다. 소스상에는 분명 output 된곳이 없지만, 에러가 발생된다. 이유인즉 UTF-8로 저장시 자동으로 UTF-8을 인식하는 BOM이 추가되는것이다. 그렇다면 BOM 이란 녀석은 뭐하는 놈인가? http://en.wikipedia.org/wiki/Byte_Order_Mark 이곳에서 정답을 찾으세요~!! 바이트 순서 표식 editplus v 2.30 에서 BOM 제거 설정은 Tools > Preferences > Files > UTF-8 signature 항목에서 세번째인 Always remove signatur.. 2008. 8. 20. [PHP] 파일시스템에 접근하지 않고 realpath 와 같은 기능을 하는 함수 Because realpath() does not work on files that do not exist, I wrote a function that does. It replaces (consecutive) occurences of / and \\ with whatever is in DIRECTORY_SEPARATOR, and processes /. and /.. fine. Paths returned by get_absolute_path() contain no (back)slash at position 0 (beginning of the string) or position -1 (ending) 2008. 8. 19. [PHP] 폴더 경로 변경 함수 Looks like a lot of people are looking for an 'unrealpath' or 'relative-path' function, returning the relative path from a directory to another one (in most cases ./). Unfortunately it's kinda difficult to program such a function which really works correctly, with any type of path. Most of the posted functions have some little bugs. I compared the following functions: - unrealpath() by Zach Bern.. 2008. 8. 19. 1800 일본어 한자 家 覺 집 いえ 깨달을 おぼえる 敢 佳 刻 감히 あえて 아름다울 よい 새길 きざむ 監 街 干 보다 みる 거리 まち 방패 たて,ほす 鑑 可 間 거울 かんがみる 옳을 사이 あいだ 甲 歌 看 갑옷 노래 うた 보다 みる 江 加 刊 강 え 더할 くわえる 책펴낼 きざむ 降 價 肝 내릴 ふる 값 あたり 간 きも 講 假 幹 익힐 거짓 かり 줄기 みき 强 架 簡 굳셀 つよい 시렁 たな,かける 대쪽,간단 康 暇 姦 편안할 やすい 겨를 ひま 간음할 みだら 剛 .. 2008. 8. 19. 이전 1 ··· 61 62 63 64 65 66 67 ··· 129 다음