Home >Backend Development >PHP Tutorial > php 用绝对路径跳转有关问题

php 用绝对路径跳转有关问题

WBOY
WBOYOriginal
2016-06-13 12:49:38849browse

php 用绝对路径跳转问题
php文件的当前路径为“127.0.0.1/myproject/file/a.php”

我写了个超链接用来跳转到另一个文件夹的文件,用相对路径能够跳转成功,如果像下面那样写成绝对路径

echo "tiao";

结果出现当前路径接上绝对路径的情况而无法跳转成功,这个问题如何解决?
怎样用绝对路径完成跳转?


------解决方案--------------------
echo "tiao";  
你试试
------解决方案--------------------
tiao
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