PHP56 경로설정 ///////경로설정//////////////////////$file_server_path = realpath(__FILE__);// PHP 파일 이름이 들어간 절대 서버 경로 $php_filename = basename(__FILE__);// PHP 파일 이름 $server_path = str_replace(basename(__FILE__), "", $file_server_path);// PHP 파일 이름을 뺀 절대 서버 경로 $server_root_path = $_SERVER['DOCUMENT_ROOT'];// 서버의 웹 뿌리(루트) 경로(절대 경로) $relative_path = eregi_replace("\/[^/]*\.php$", "/", $_SERVER['PHP_SELF']);$relative.. 2017. 7. 22. 디렉토리의 파일목록 읽어오기 ///디렉토리의 파일목록 읽어오기 http://moa.pe.kr 2017. 7. 22. htmlspecialchars() ////htmlspecialchars() html 보이기$content = htmlspecialchars($content); //데이터형식자료형 의 미 (string)문자열형 (int)정수형 (double)실수형 (bool)부울형 (array)배열형 (object)객체형 (unset)변수제거 http://moa.pe.kr 2017. 7. 22. 자바스크립트 변수를 php에서 읽기 ///자바스크립트 변수를 php에서 읽기 http://moa.pe.kr 2017. 7. 22. 이전 1 2 3 4 ··· 14 다음