PHP realpath()

1 개요[ | ]

PHP realpath()
  • "Returns canonicalized absolute pathname"
  • 어떤 경로를 넣으면 정규화된 절대경로를 반환하는 PHP 함수
echo realpath('/etc/../var/');
// /var
chdir('/etc/httpd/');
echo realpath('conf/httpd.conf');
// /etc/httpd/conf/httpd.conf

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}