dongzhenbi8919
2013-12-02 13:11 阅读 49
已采纳

来自脚本的error_reporting - > nginx + php-fpm

i am using nginx+php-fpm. I am unable to set up error displaying via php-file like this: error_reporting(0); or ini_set('error_reporting', E_ALL);

Working solution is via nginx.conf: fastcgi_param PHP_VALUE "upload_max_filesize = 1000M post_max_size=1010M display_errors = On";

But I need via php-script :-). Is it possible? Thanks.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    duanlei2150 duanlei2150 2013-12-02 15:12

    try

    error_reporting(E_ALL);
    ini_set('display_errors','on');
    

    PS: 0 isn't a valid value for error reporting, there's predefined constants for that

    点赞 评论 复制链接分享

相关推荐