简体   繁体   English

使用网站特定的php.ini文件

[英]Using website specific php.ini file

I have a website running on shared IIS server. 我有一个在共享IIS服务器上运行的网站。 The hosting service provider is not making changes to the file. 托管服务提供商未对文件进行更改。 I need to set display_errors to off . 我需要将display_errors设置为off I asked them for the php.ini file from their server to be mailed to me. 我要求他们从他们的服务器中将php.ini文件邮寄给我。 Can I override the default ini file to the php.ini file in my root directory? 我可以将默认ini文件覆盖到根目录中的php.ini文件吗?

I found an easier solution. 我找到了一个更简单的解决方案。 I used error_reporting(0); 我使用了error_reporting(0); to turn off displaying errors. 关闭显示错误。 This might help others looking for same solution. 这可能会帮助其他人寻找相同的解决方案。

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

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