Take the 2-minute tour ×  My website contains multiple files
organized in directories. More specifically, this is my
structure:    • index.php   • pages/account/viewaccount.php   •
pages/account/createaccount.php   •
pages/account/editaccount.php   • pages/aboutus/aboutus.php   •
src/php/functions.php  If you have trouble understanding this or
require more information, add a comment  Within my
functions.php, I create a link to refer to my index file. Since
this function is called by all my main .php files, the path to
the index file varies dependent on the page calling the
function.  For example, if the function is called by my index
file, the path would obviously be "index.php". However if the
function is called from my viewaccount.php file, the required
path would be "../../index.php"  Therefore my problem is:  How
can I set a general path, which independent from which file I
call my function, it will always link correctly to my index
file.  Once quick fix is to put all my main php files as
siblings to my i