简体   繁体   English

php ini设置如果从php代码和其他php.ini文件中完成,哪一个会覆盖另一个?

[英]php ini settings if done from inside php code and other from php.ini file , which one will override the other?

If some configuration parameters of php are set from both the modes ie from inside the php code and from an php.ini file . 如果php的某些配置参数是从两种模式设置的,即从php代码内部和php.ini文件中设置。 I wanna know which one will be overriding the other to take effect. 我想知道哪一个会压倒另一个才能生效。 and also please tell me if the php.ini configuration is applied in the sub folders or not. 如果php.ini配置是否应用于子文件夹,请告诉我。

If you mean ini_set then ini_set will take precedence over the configuration file. 如果您的意思是ini_set那么ini_set将优先于配置文件。

See ini_set . ini_set

Note that some values can't be set in this way due to ini_set restrictions or server configuration. 请注意,由于ini_set限制或服务器配置,无法以这种方式设置某些值。 ini_set will return FALSE if it did not set the value (or, presumably, if the value was previously false). 如果未设置值,则ini_set将返回FALSE (或者,如果该值之前为false,则可能返回false)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM