dreamfly0514 2012-04-02 04:35
浏览 32

无法在我的登台服务器上更改php错误报告级别。任何评论都将不胜感激

i have set error reporting to 1 using php function error_reporting(1) but it has no effect on the server .actually i am working on a staging server using xampp.is there any settings which has to be enabled in server so that php error reporting settings can be changed.

  • 写回答

3条回答 默认 最新

  • doudui2229 2012-04-02 04:40
    关注

    Try changing the setting in \xampp\php\php.ini, not via the error_reporting function. Then restart the server, and you should be good to go.

    You may also want to check that display_errors is set to on. (Off the top of my head, though, XAMPP should be configured to display errors by default. Weird.)


    Via FTP only, you can attempt to set these variables via ini_set at the top of your script:

    <?php
    
    ini_set('display_errors', 1)
    ini_set('error_reporting', 1)
    
    ?>
    

    You may also want to try setting these variables through a .htaccess file. Create a file called .htaccess in the same directory as your script, and add these lines:

    php_flag display_errors on
    php_value error_reporting 1
    
    评论

报告相同问题?

悬赏问题

  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 linux驱动,linux应用,多线程
  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法