"함수 realpath()"의 두 판 사이의 차이

3번째 줄: 3번째 줄:
==PHP==
==PHP==
[[category: PHP]]
[[category: PHP]]
<source lang='PHP'>
echo realpath('/etc/../var/');
// /var
</source>
<source lang='PHP'>
<source lang='PHP'>
chdir('/etc/httpd/');
chdir('/etc/httpd/');

2015년 6월 8일 (월) 18:20 판


1 PHP

echo realpath('/etc/../var/');
// /var
chdir('/etc/httpd/');
echo realpath('conf/httpd.conf');
// /etc/httpd/conf/httpd.conf

2 같이 보기

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