Include one PHP file into another

前端 未结 3 448
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-18 15:41

I need to include one PHP file into another. The PHP file that needs to be included sits in a separate directory though. This is how it is set up:

folder1/glo         


        
3条回答
  •  孤城傲影
    2020-12-18 16:17

    You are including functions.php in itself. Change functions.php to global-functions.php.

    And just out of curiosity, why have different files for functions? Why not make classes and objects and make your life easier?

提交回复
热议问题