How can I see a variable defined in another php-file?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-05-13T21:10:43Z Indexed on 2010/05/13 21:14 UTC
Read the original article Hit count: 140

Filed under:
|
|
|
|

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 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?

© Stack Overflow or respective owner

Related posts about php

Related posts about variables