我使用 Joomla v1.5,在安装相同的组件后我收到了已弃用的消息 - 如何在 Joomla 中禁用此消息?我无法在 php.ini 中禁用它,因为我无法访问服务器中的 php。
最佳答案
放入index.php文件,在这行define( '_JEXEC', 1 );
之后,这样的语句:
error_reporting(0);
或者,作为 pderaaij说,使用:
error_reporting(E_ALL ^ E_DEPRECATED);
正如他所说,
In this way all of the other errors are shown, except the deprecated messages.
关于php - 如何在 Joomla 中禁用已弃用的消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7746303/