Answer the question
In order to leave comments, you need to log in
How to get root path using "." and ".."?
How to get path back to root? For example
https://example.com/test/another_test/index.php
, you need to get the path to
https://example.com/
. In this case, the path should look like:
/../../
How to do this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question