大家可能知道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