I have a config.php
that is included to each page. In config I create an array that looks something like:
$config = array();
$config[\'site_name\
For your case I would create an only file constants.php
with definitions (if your purpose is these "variables" never be changed in execution time):
define('SITE_NAME','site name');
define('BASE_PATH','/home/docs/public_html/');
...
Include this constants.php
in all files where you will need it:
include_once('constants.php');