So I have a file for constants. I want to let user define them and then edit my .php filr with that global constants (not xml - real PHP file )
With such code for exampl
if you are designing your own solution you should refrain from using metaprogramming (check wikipedia) for configuration purposes.
php has a built-in ini-file parser you can use. when you've only got key-value pairs that is sufficient.
writing:
reading:
$v) { define($k,$v); } ?>