开发者

PHP - Where should I call ini_set?

I am looking for a best practice for where I should place the statement ini_set.

For example,

ini_set('session.use_开发者_C百科only_cookies', 1);

Thank you


I normally place them all in my index.php file as early as is practical. Normally, immediately after defining constants for the root directory of my application and before anything could go wrong (for example before any requires)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜