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
Take a look at Zend's CodeGenerator module. Using the reflection api you can create files and classes programatically.