php.ini的配置
具體,我忘記了就是錯誤警告的配置部分!

解决方案 »

  1.   

    error_reporting  =  E_ALL & ~E_NOTICE
      

  2.   

    PHP.ini
    ; E_ALL             - All errors and warnings
    ; E_ERROR           - fatal run-time errors
    ; E_WARNING         - run-time warnings (non-fatal errors)
    ; E_PARSE           - compile-time parse errors
    ; E_NOTICE          - run-time notices (these are warnings which often result
    ;                     from a bug in your code, but it's possible that it was
    ;                     intentional (e.g., using an uninitialized variable and
    ;                     relying on the fact it's automatically initialized to an
    ;                     empty string)
    ; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
    ; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
    ;                     initial startup
    ; E_COMPILE_ERROR   - fatal compile-time errors
    ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
    ; E_USER_ERROR      - user-generated error message
    ; E_USER_WARNING    - user-generated warning message
    ; E_USER_NOTICE     - user-generated notice message
    ;
    ; Examples:
    ;
    ;   - Show all errors, except for notices
    ;
    error_reporting = E_ALL & ~E_NOTICE
      

  3.   

    error_reporting  =  E_ALL & ~E_NOTICE我装完就是默认的,我重来就没有改过!
    error_reporting  =  E_ALL & ~E_NOTICE
    有好几个第两个是error_reporting  =  E_ALL
    一个是error_reporting  =  E_ALL & ~E_NOTICE
    还有一个是;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
    问一下php.ini 前都有一个;分号是注释吧?
    本人改的是无分号的那行,原来是error_reporting  =  E_ALL
    让我改为error_reporting  =  E_ALL & ~E_NOTICE
    重起APACHE还是不好使呀!
      

  4.   


    display_errors = Off