Setting PHP Include Path on a per site basis?

后端 未结 7 1286
既然无缘
既然无缘 2020-12-20 11:25

I can set the PHP include path in the php.ini:

include_path = /path/to/site/includes/

But then other websites are affected so

7条回答
  •  抹茶落季
    2020-12-20 11:51

    Erik Van Brakel gave, IMHO, one of the best answers.

    More, if you're using Apache & Virtual hosts, you can set up includes directly in them. Using this method, you won't have to remember to leave php_admin commands in your .htaccess.

提交回复
热议问题