im starting to use OOP in PHP.
I have a file called settings.php located in a different directory that same php settings plus some "global" variables like images dir,site name etc... that are used very often in scripts and are somehow the base configuration and will never change.
Now If I want to "call" them inside methods by including the php file in the classes page I can't since they're external data. They only way to make them work was to declare them as "global".
Is it the right way to it or it has some disadvantaged?
Is there a better way to organize this?
Be aware that those variables are also used in procedural code thus outside function/classes also.