Php uses the absolute path to jump to the problem. The current path of the php file is "127.0.0.1/myproject/file/. php "I wrote a hyperlink to jump to a file in another folder. it can be successfully redirected using a relative path. if you write an absolute path echo & nbsp;" & lt; a & nbsp; href = '2017. 0.0.1/myproject php jump with absolute path
The current php file path is "127.0.0.1/myproject/file/a. php"
I wrote a hyperlink to jump to a file in another folder. it can be successfully redirected using a relative path. if it is written as an absolute path below
Echo "tiao ";
As a result, the current path is connected to an absolute path and the Jump fails. how can this problem be solved?
How can I use an absolute path to complete the jump?
------ Solution --------------------
Echo "tiao ";
Try
------ Solution --------------------
Tiao
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service