Home > Backend Development > PHP Tutorial > PHPCMS中的一个路径问题

PHPCMS中的一个路径问题

WBOY
Release: 2016-06-23 14:38:23
Original
1143 people have browsed it

define('PC_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR);

if(!defined('PHPCMS_PATH')) define('PHPCMS_PATH', PC_PATH. '..'.DIRECTORY_SEPARATOR);

如上代码所示:../或者..\常见用法都在路径的开头处,而这种情况明显在路径的后面。这样的用法是什么意思呢?


回复讨论(解决方案)

这是相对的上级目录, 对于文件的上级目录 , 你运行下看看就知道了~

求解!在线求解!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template