Adding functions to PHP core

前端 未结 5 752
礼貌的吻别
礼貌的吻别 2021-01-22 17:56

I have several functions that I wrote and I use regularly on my servers, is there a way I can add them to the core so I don\'t have to include them from external files?

5条回答
  •  北海茫月
    2021-01-22 18:50

    Why exactly is it so hard to include the files where you need them?

    I suppose the auto_prepend_file PHP.ini directive could work. But it's not really recommended.

提交回复
热议问题