I use the same constant in all my php files. I do not want to assign the value of this variable in all my files. So, I wanted to create one “parameters.php” file and to do the assignment there. Then in all other files I include the “parameters.php” and use variables defined in the “parameters.php”.
It was the idea but it does not work. I also tried to make the variable global. It also does not work. Is there a way to do what I want? Or may be there some alternative approach?
That is exactly how it works.
Have you got error reporting set up, and is there anything in the error log? I’m guessing the include is failing but you’re not seeing the error.