Dev/PHP
현재 경로, 디렉토리(dir) 확인 함수
샤해
2012. 12. 19. 19:04
string dirname(string path) [출처] php 파일 시스템 함수(1)|작성자 니키아
ex)
url : localhost/main/index.php
echo dirname($PHP_SELF); // '/main'