Can one .PHP file edit another?

前端 未结 8 2082
无人共我
无人共我 2021-02-03 16:12

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

8条回答
  •  忘掉有多难
    2021-02-03 16:33

    Take a look at Zend's CodeGenerator module. Using the reflection api you can create files and classes programatically.

提交回复
热议问题