I am trying to create a script and I want to be able to say
require "~/functions/functions1.php";
require "~/functions/functions2.php";
require "~/functions/functions3.php";
but php doesn't seem to understand what the tilde means (and yes this for a linux server). Is there any way I can specify the home dir without actually having to point it to to absolute path? A relative path wouldn't work because I won't know how many folders some of these files will be in