由于对ecshop没用过,一点都不熟悉,现在我手上一个ecshop站首页出现很多警告提示  我想把它关闭了
  请问是修改那个文件  

解决方案 »

  1.   

    如果你就想屏蔽它们的话
    那么你可以在文件中运用ini_set("display_errors","Off");或者在php.ini中配置
    error_reporting选项,参数如下:
    http://www.w3school.com.cn/php/func_error_reporting.asp
      

  2.   

    老大: 这个站域名:www.shengmeilian.cc
    提示一些警告  估计在某个地方关闭(Warning: file_put_contents(/var/www/clients/client379/web455/web//temp/static_caches/shop_config.php) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/clients/client379/web455/web/includes/lib_base.php on line 3802)
      

  3.   

    我是想把ecshop系统的警告全部给屏蔽掉
      

  4.   

    define('D_BUG', '1');
    D_BUG?error_reporting(7):error_reporting(0);
    set_magic_quotes_runtime(0);
    在你的主文件里面 加上这一句话 试试
      

  5.   

    Warning: file_put_contents(/var/www/clients/client379/web455/web//temp/static_caches/recommend_goods.php) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/clients/client379/web455/web/includes/lib_base.php on line 3802Warning: file_put_contents(/var/www/clients/client379/web455/web/temp/compiled/index.dwt.php) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/clients/client379/web455/web/includes/cls_template.php on line 784Notice: can't write:/var/www/clients/client379/web455/web/temp/compiled/index.dwt.php in /var/www/clients/client379/web455/web/includes/cls_template.php on line 790大致就这几条
    failed to open stream: No such file or directory 的意思是: 未能打开流:没有这样的文件或目录这可错误不可屏蔽,必须找的错误原因,否则系统不可能正常运行
    在错误信息提示的地方检查传给 file_put_contents 的文件名
      

  6.   

    <?php
    //禁用错误报告
    error_reporting(0);//报告运行时错误
    error_reporting(E_ERROR | E_WARNING | E_PARSE);//报告所有错误
    error_reporting(E_ALL);
    ?>
    我没搞懂,你这样试试 ,应该就是这个函数
      

  7.   

    那么你可以在文件中运用ini_set("display_errors","Off");  这个运用了还是没屏蔽掉哦
      

  8.   

    对了,你的是 文件打开错误, 必须要解决的 ,如果不想解决 , 那么 需要 在 file_put_contents(/var/www/clients/client379/web455/web//temp/static_caches/recommend_goods.php)  前面 加上 一个 @  符号
      

  9.   

    @include_once("aaa.php");类似这样
      

  10.   

    这样是可以把部分警告给屏蔽了
    比如:(Notice: can't write:/var/www/clients/client379/web455/web/temp/compiled/goods.dwt.php in /var/www/clients/client379/web455/web/includes/cls_template.php on line 790)这些提示没办法屏蔽
      

  11.   

    if(!@include_once("a.php")) {
    //往文件里面写东西
    }
    给程序加判断,能打开文件 就写,打不开就不写