James's BLOG

Apache & MySQL Connection Setting

›
Apache 檢查Apache 版本及運行腳本 httpd -v, httpd -l 設定Apache22/extra/httpd-mpm.conf 找到腳本設定 StartServers 5 MinSpareServers ...

PHP cURL POST IIS

›
使用PHP curl POST 給IIS時要把字陣列改成字串 原本 curl_setopt($curl_handle, CURLOPT_POSTFIELDS, array('foo' => 'bar')); 改成 curl_s...

MySQL CAST String to Integer

›
SELECT * FROM table ORDER BY CAST(column, SIGNED) DESC;

MySQL my.cnf UTF8

›
進入MySQL使用指令查詢charset show variables like "%character%"; show variables like "%collation%";  my.cnf [client] port=...

Codeigniter View Cache

›
使用CI的Cache注意的地方 1. 更改cache資料夾權限可讀寫 2.可以將指令放在任何地方, 我放在 __construct 裡, 因為我要全部都輸出. $this->output->cache(m); // m 分鐘 3.cache ...

FreeBSD crontab backup remote file to local

›
1. 在遠端排程備份檔案, 新版 MySQL 使用 command line password 會出現錯誤, 所以要改使用--defaults-file存入密碼, 方能執行不會出現錯誤. echo 'export database' mysqldump --...
‹
›
首頁
查看網路版
技術提供:Blogger.