i write a program to Put some stuff in an database. For better organisation i want to use a config file.
In this file i want to set some variables which I want to use all over the other PHP files. For example the absolute folder wich contain all pictures
I solve this with a $GLOBALS[] Variable
For example i put in my config.php
$GLOBALS['Bildverzeichnis'] = 'www/images/';
so I can uses this in all my funtions. My question:
Is this the way to use configuration stuff?