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

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

WBOY
Release: 2016-06-13 10:50:40
Original
894 people have browsed it

下面看两段代码:

      代码一:相对地址访问

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


      浠g爜浜岋細缁濆

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template