CentOS 7 LAMP(MariaDB) 全新安裝記事

到此 http://www.centos.org/download/mirrors/ 尋找 Region 為 Taiwan 的下載 CentOS-7-x86_64-Minimal-1511.iso 安裝開發環境需要的東西: 1yum install wget vim screen git unzip 關閉 selinux 1vim /etc/selinux/config 將 1SELIN...

Posted on  | 0 Comments

CentOS 7 安裝 remi repository 並透過 remi 安裝 php 5.4、5.5、5.6

首先到 http://dl.fedoraproject.org/pub/epel/7/x86_64/e/ 找檔案名稱類似為 epel-release-X.noarch.rpm 中間的大 X 是版本,因為版本隨時都在變,過一陣子就會換版本,所以用這方法找檔案比較保險 以下以本文發佈後最新的版本 7.1 來當範例 12wget http://dl.fedoraproject....

Posted on  | 0 Comments

Wordpress 手動增加 Google Analytics 追蹤程式碼

打開 wp-includes/default-filters.php 約第 198 行開始隨意找一行加入此段程式碼 1add_action('wp_head', 'google_analytics'); 然後打開 wp-includes/general-template.php 隨意找一行新增以下程式碼 123456789101112function...

Posted on  | 0 Comments

joomla utf8 字串處理、非 local 引用其他元件 model

使用 utf8 相關字串處理:123jimport('phputf8.utf8'); utf8\_strlen($str):計算字數長度。 utf8\_substr($str, $offset, $length):截字 在 controller 以外的其他地方載入非屬於本 view 的 model:123$control = New JController();...

Posted on  | 0 Comments