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

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

2014년 8월 31일 (일) 15:40 판


1 PHP

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

2 같이 보기

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