PHP Warning: Module already loaded in Unknown on line 0

前端 未结 15 1270
抹茶落季
抹茶落季 2020-11-27 16:38

On Mac OSX Mavericks using homebrew php55 whenever I run a a php command I get the following error message (everything runs fine it\'s just annoying)

PHP War         


        
15条回答
  •  醉话见心
    2020-11-27 17:30

    For issue related to code igniter project upload,
    go to the base directory index.php and add this code:
    
    if ($_SERVER['SERVER_NAME'] == 'local_server_name') {
        define('ENVIRONMENT', 'development');
    } else {
        define('ENVIRONMENT', 'production');
    }
    
    if (defined('ENVIRONMENT')){
        switch (ENVIRONMENT){
            case 'development':
                error_reporting(E_ALL);
            break;
    
            case 'testing':
            case 'production':
                error_reporting(0);
            break;
    
            default:
                exit('The application environment is not set correctly.');
        }
    }
    
    
        define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
    

提交回复
热议问题