Paths in PHP not work.

Featured Imgs 23

How to figure out the paths, why the styles are not applied, the file is not found, I tried many methods, but as a rule nothing works, it happens that the main page applies styles, in other files there is none or there is no file at all, it is clear that you need to register the paths, but how? I tried $path = $_SERVER['DOCUMENT_ROOT']; this does not work