Home >Backend Development >PHP Tutorial >php dirname 路径

php dirname 路径

WBOY
WBOYOriginal
2016-06-23 14:35:08717browse

大家可能知道dirname ( __FILE__ ) 是当前路径的意义 比如 我的一个项目中路径为 E:\PHP\clicksys\click\configs

如果获取上层路径为 dirname(dirname ( __FILE__ ))   E:\PHP\clicksys\click

很有意思

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:JSF or PHP or ADF?!! :(Next article:PHP Socket 编程