if you want to show or just want to know what is the path of your website in php, you can use $_SERVER['DOCUMENT_ROOT']

try it

echo $_SERVER['DOCUMENT_ROOT'];