php开启报错

简介:

一般服务器为了安全都会再php.ini配置中关闭报错功能。(display_errors=Off)

 

显示页面报错:(注意:加在网页最上面)

 

 
  1. <?php 
  2. if(!ini_get('display_errors')){ 
  3.     ini_set('display_errors','On'); 
  4. error_reporting(E_ALL);
  5.  
    error_reporting(E_ALL & ~E_NOTICE); //除notice注意之外的
  6. include("dfasfasdds.php"); 
  7.     sdfasdfsd 
  8. ?> 

       本文转自许琴 51CTO博客,原文链接:http://blog.51cto.com/xuqin/962843,如需转载请自行联系原作者



相关文章
|
应用服务中间件 Shell PHP
pbootcms模板报错提示PHP Warning: Unknown: open_basedir restriction
pbootcms模板报错提示PHP Warning: Unknown: open_basedir restriction
|
PHP
PHP显示报错提示,开启display_errors的方法
PHP显示报错提示,开启display_errors的方法
352 0
|
PHP
PHP——oneinstack重新安装PHP的时候报错
PHP——oneinstack重新安装PHP的时候报错
245 4
|
PHP
PHP——安装ThinkPHP框架报错
PHP——安装ThinkPHP框架报错
196 0
|
PHP
php 使用phpize报错Cannot find config.m4. Make sure that you run ‘/usr/bin/phpize‘ in the top l
php 使用phpize报错Cannot find config.m4. Make sure that you run ‘/usr/bin/phpize‘ in the top l
756 1
|
Ubuntu PHP
ubuntu php libzip安装 ./configure报错 checking for libzip... not found configure
ubuntu php libzip安装 ./configure报错 checking for libzip... not found configure
377 1
|
Java 中间件 Serverless
Serverless 应用引擎操作报错合集之在阿里函数计算中,云函数怎么一直报错Function instance exited unexpectedly(code 1, message:operation not permitted) with start command 'php server.php '.如何解决
Serverless 应用引擎(SAE)是阿里云提供的Serverless PaaS平台,支持Spring Cloud、Dubbo、HSF等主流微服务框架,简化应用的部署、运维和弹性伸缩。在使用SAE过程中,可能会遇到各种操作报错。以下是一些常见的报错情况及其可能的原因和解决方法。
363 2
|
PHP 数据库
phpMyAdmin报错 in ./libraries/config/FormDisplay.php#661 continue targeting switch is equivalent to
phpMyAdmin报错 in ./libraries/config/FormDisplay.php#661 continue targeting switch is equivalent to
167 0
|
PHP
PHP显示报错提示,开启display_errors的方法
PHP显示报错提示,开启display_errors的方法
750 0