PHP provides a number of 'magic constants' such as __LINE__, __FILE__, __FUNCTION__, __CLASS__ and __METHOD__.
I want to get the name of the file that includes another file from inside the included file. I know …
php include include-path magic-constantsTL;DR: What alternatives to the last code sample on this page are there when trying to use relative links …
php relative-path directory-structure document-root magic-constants