update : 2015.11.03
php.shukuma.com검색:
|
realpath(PHP 4, PHP 5, PHP 7) realpath — Returns canonicalized absolute pathname 설명
string realpath
( string
$path
)
realpath() expands all symbolic links and
resolves references to '/./', '/../' and extra '/' characters in
the input 인수
반환값Returns the canonicalized absolute pathname on success. The resulting path will have no symbolic link, '/./' or '/../' components. Trailing delimiters, such as \ and /, are also removed.
realpath() returns
변경점
예제
Example #1 realpath() example
<?php 위 예제의 출력: /etc/passwd /tmp Example #2 realpath() on Windows On windows realpath() will change unix style paths to windows style.
<?php 위 예제의 출력: C:\WINDOWS\System32 C:\Program Files 참고
|