Level 33
So, you want to get the document root?
$_SERVER['DOCUMENT_ROOT']
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi! dear I re-write the code and experience on the
$_SERVER['REQUEST_URI']
that my pages do not change it is still on the root directory which is re-test let me show the image of my result page
this is about/culture page now I understand is that must be the re-test/about/culture but the request_uri not return the right path
can you please now figure out what is the problem
thank you so much
Please or to participate in this conversation.