解决cPanel主机无法修改php.ini文件的问题
解决cPanel主机无法修改php.ini文件的问题
比如测试某款开源软件时一直报错
1
2
3
4
5
6
7
8
php Notice: Undefined offset 1
php Notice: Undefined offset 2
php Notice: Undefined offset 3
php Notice: Undefined offset 4
cPanel主机后台主机是可以修改
error_reporting = E_ALL
为error_reporting = E_ALL & ~E_NOTICE
从而完全屏蔽掉错误信息的,这样对于有洁癖的人来说,就看不到报错信息了
但是修改后,依然报错,还是无效。
最后只能通过修改报错文件来实现屏蔽错误信息
在报错信息PHP文件头部输入下面代码即可
<?php error_reporting (E_ALL ^ E_NOTICE); ?>
💘 相关文章
- 教你怎样找出cpanel主机的ssh端口
- Solve the problem that the cPanel host cannot modify the php.ini file
- 轻量级的Php mysql web 管理客户端程序Adminer
- php Parse error: syntax error, unexpected ';', expecting ',' or ')'的解决方法
- nginx禁止执行php脚本
- 性价比超高的HawkHost老鹰主机2022最新6.5折优惠码
- php Use of undefined constant SIGTERM - assumed 'SIGTERM'的解决方法
- 使用php腳本自建簡單隨機圖片API
- DigitalOcean更新了云主机的价格,最低配的只需要4美金,但是总体上是涨价了
- 美国老牌主机(鳄鱼主机)hostgator 16周年庆促销