Mac 開機自動啟動 mariadb
--
1. 查看 mariadb 的安裝目錄
   # brew --prefix mariadb
   /usr/local/opt/mariadb

wbkuo 發表在 痞客邦 留言(0) 人氣()

步驟
1. 安裝 xdebug
    # brew install php55-xdebug

2. 編輯 php.ini

wbkuo 發表在 痞客邦 留言(0) 人氣()

錯誤訊息無法顯示時,請照以下步驟檢查

1. 檢查 php.ini
    display_errors = On
    error_reporting = E_ALL

wbkuo 發表在 痞客邦 留言(0) 人氣()

====  安裝 homebrew  ====

OS X 的套件管理工具: http://brew.sh/index_zh-tw.html
# ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

wbkuo 發表在 痞客邦 留言(0) 人氣()

網址: http://brew.sh/index_zh-tw.html

安裝
請打開終端機,貼上下面這行
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

wbkuo 發表在 痞客邦 留言(0) 人氣()

WORKDIR=$(cd "$(dirname "$0")"; pwd)

wbkuo 發表在 痞客邦 留言(0) 人氣()

在 CodeIgniter 的 index.php 中有這樣一段程式

/*
 *---------------------------------------------------------------
 * APPLICATION ENVIRONMENT
 *---------------------------------------------------------------
 *
 * You can load different configurations depending on your
 * current environment. Setting the environment also influences
 * things like logging and error reporting.
 *
 * This can be set to anything, but default usage is:
 *
 *     development
 *     testing
 *     production
 *
 * NOTE: If you change these, also change the error_reporting() code below
 */
    define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
/*
 *---------------------------------------------------------------
 * ERROR REPORTING
 *---------------------------------------------------------------
 *
 * Different environments will require different levels of error reporting.
 * By default development will show errors but testing and live will hide them.
 */
switch (ENVIRONMENT)
{
    case 'development':
        error_reporting(-1);
        ini_set('display_errors', 1);
    break;
    case 'testing':
    case 'production':
        ini_set('display_errors', 0);
        if (version_compare(PHP_VERSION, '5.3', '>='))
        {
            error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
        }
        else
        {
            error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE);
        }
    break;
    default:
        header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
        echo 'The application environment is not set correctly.';
        exit(1); // EXIT_ERROR
}

這裡可以看到 ENVIRONMENT 的值是由 $_SERVER['CI_ENV'] 決定的
要設定 $_SERVER['CI_ENV'] 的話,在 Apache 底下是用
SetEnv {VAR_NAME}  {VAR_VALUE}

wbkuo 發表在 痞客邦 留言(0) 人氣()


1. 一行放多個 input
   form-inline clearfix


wbkuo 發表在 痞客邦 留言(0) 人氣()

http://slides.com/wen-binkuo/dos-command/#/


wbkuo 發表在 痞客邦 留言(0) 人氣()

因為預設的深度是 3 ,所以如果陣列超過 3 層就會被隱藏。

解決方法:
1. 編輯 php.ini
2. 在 xdebug 的區塊加上

wbkuo 發表在 痞客邦 留言(0) 人氣()