Home  >  Article  >  Backend Development  >  浅谈php中使用绝对路径和相对路径_PHP教程

浅谈php中使用绝对路径和相对路径_PHP教程

WBOY
WBOYOriginal
2016-07-13 17:52:35936browse

下面看两段代码:

      代码一:相对地址访问

[php] 
 
 
    echo $_SERVER['DOCUMENT_ROOT']; 
?> 
    浅谈php中使用绝对路径和相对路径_PHP教程 


      浠g爜浜岋細缁濆

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