
解决cPanel主机无法修改php.ini文件的问题
解决cPanel主机无法修改php.ini文件的问题
比如测试某款开源软件时一直报错
1
2
3
4
5
6
7
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); ?>
💘 相关文章
- Solve the problem that the cPanel host cannot modify the php.ini file
- 教你怎样找出cpanel主机的ssh端口
- Mac Os 系統下php mysql 集成开发环境工具mdserver
- 小清新一款基于PHP的微博系统
- 基于PHP的文件分享源码
- 使用php腳本自建簡單隨機圖片API
- php Parse error: syntax error, unexpected ';', expecting ',' or ')'的解决方法
- php Use of undefined constant SIGTERM - assumed 'SIGTERM'的解决方法
- 性价比超高的HawkHost老鹰主机2022最新6.5折优惠码
- 美国老牌主机(鳄鱼主机)hostgator 16周年庆促销