realpath
(PHP 4, PHP 5)
realpath — 표준화된 절대 경로명을 반환합니다
Description
string realpath
( string $path
)
realpath()는 path 로 입력된 경로에서 모든 심볼릭 링크와 '/./', '/../'로 참조된 경로 그리고 그 외의 '/' 을 확장해서 표준화된 절대 경로명을 반환합니다. 이렇게 해서 나온 경로명은 심볼릭 일크와 '/./' 또는 '/../' 등을 포함하고 있지 않습니다.
Example#1 realpath()예문
$real_path = realpath ("../../index.php");