A Guide to MySQL and PHP UTF-8 Encoding
A Guide to UTF-8 Encoding in PHP and MySQL Once you step beyond the comfortable confines of English-only character sets, you quickly find yourself entangled in the wonderfully wacky world…
Explain Apache Rewrite with Htaccess in Chinese
Apache Rewrite with Htaccess 理解與技巧 在搜尋 Apache 針對網址改寫、避免訪問敏感檔案時,都會看到RewriteRule、RewriteCond 等的 Directive,但因為有時候不理解其中特性或Rule 跟 Cond 的差異等,加上若不熟悉正規表達式,完全只想逃避這些 Rule 們呢哭哭,因此本文將介紹: 一、開啟 Rewrite 功能 二、RewriteRule 三、RewriteCond 四、如何除錯 五、一些小特性 六、使用 Htaccess 的缺點 ※ 本文內容會盡量減少複雜的正規表達式,但若讀者對正規表達式一概不通的話,還是要先惡補一些些囉! (或是你願意等待筆者撰寫下一篇關於正規表達式的文章 :P) 一、開啟…
Official doc for Apache 2.4 mod_rewrite
Summary This module uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly. It supports an unlimited number of rules and an unlimited…
How to permanently disable IPv6 by configuring /etc/sysctl.conf on Ubuntu Linux
Are you looking for a way to disable IPv6 connections on your Ubuntu machine? In this article, I’ll teach you exactly how to do it and why you would consider this option.…
Compile Apache, MySQL and PHP5 from source code on Ubuntu
Introduction These are the steps I followed to create a production web server on Ubuntu 7.10 Gutsy. If you use exactly the same versions of everything you should be able to follow…
Linux 將 BIG5 文字檔轉成 UTF-8 格式 – Nothing but..
自從日常的桌面環境從 Windows 轉到 Linux 後,時常會發現原本的文字檔在 terminal 裡變成亂碼,這是因為以前使用 Windows 沒有養成把檔案存成 unicode 的習慣,因此下面就來說明如何將大量的 BIG5 文字檔轉成 UTF-8 格式的文字檔 將 BIG5 文字檔批次轉成 UTF-8 格式 首先檢查資料夾底下的文字檔格式 file *.txt Bash Copy # 執行結果: a.txt: UTF-8 Unicode…
How using tar to do file backup for code only without user data
Using tar command is fast and effective. You have to exclude dynamic data tar –exclude=’./var’ –exclude=’./pub/media/catalog’ –exclude=’./pub/media/productattach’ –exclude=’./download’ –exclude=’./generated’ -cvzf my.tar.gz ./* When apply the above command you have to…
How To Manage Logfiles with Logrotate on Ubuntu 16.04 | DigitalOcean
Logrotate is a system utility that manages the automatic rotation and compression of log files. If log files were not rotated, compressed, and periodically pruned, they could eventually consume all…