Overriding global php.ini file

前端 未结 2 649
庸人自扰
庸人自扰 2020-12-07 02:10

I don\'t have access to global php.ini file since I am running my application on shared hosting and now what happens is I need to put my php.ini file in every directory to u

相关标签:
2条回答
  • 2020-12-07 02:49

    For CGI/FastCGI use .user.ini files Docs. Works since PHP 5.3.

    Some shared hosters allow as well to place php.ini files into the webroot directory or at some other place. Contact your hoster.

    0 讨论(0)
  • 2020-12-07 02:50

    Yes! Not all php.ini options can be set, but many can be changed through .htaccess files, or the ini_set function, etc. See these pages.

    0 讨论(0)
提交回复
热议问题