Home >php教程 >php手册 >浅谈php中使用绝对路径和相对路径

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:50:40909browse

下面看两段代码:

      代码一:相对地址访问

[php] 
 
 
    echo $_SERVER['DOCUMENT_ROOT']; 
?> 
    浅谈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