Home  >  Article  >  Backend Development  >  php 用绝对路径跳转问题

php 用绝对路径跳转问题

WBOY
WBOYOriginal
2016-06-23 14:04:351950browse

php文件的当前路径为“127.0.0.1/myproject/file/a.php”

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

echo "tiao";

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


回复讨论(解决方案)

echo "tiao";  
你试试

加上http

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