Since CentOS 7.2 was a little different from CentOS 7.0, you should be aware of the differences during installation of LAMP. How to Install Newest… Read More »How to Install Newest LAMP on CentOS 7.2 Minimal (0/4) - An Overview
Here was my case, I saw some text shown in web pages were wider than defined width because some non-space strings were extremely longer than… Read More »How to Treat Long Non-space Strings by Regular Expression in PHP
Visitors may sometimes access your server by a pretty raw manner which contains the most specific matching IP address. For instance, suppose the server IP… Read More »How to Prevent Visitors From Accessing Website Via Server IP
Accelerated Mobile Pages (AMP) is kind of a light-weighted html standard for smartphone users to load pages more quickly by optimizing HTML codes. Therefore, AMP… Read More »Some HTML Elements are Not Rendered in AMP Pages
You might already notice that every time you focus on the input box, there's a incompatible border which wrap the input box. Actually, it's not… Read More »How to Remove Border of Focused Input Box by CSS
As you may already know that URLs are always the shorter the better for both visitors and search engines to understand your web pages at… Read More »How to Rewrite URL From Dynamic Page Into Plain URLs in Apache
The direct answer is yes. Both preg_match and preg_replace functions can be multi-byte safe. But at least, you have to meet the following two requirements… Read More »Are preg_match and preg_replace Multi-Byte Safe?
A common mistake that we could make is to misplace the order of Allow and Deny, which is the key to determine the behavior of… Read More »How to Create a Negative Policy in Apache Web Server
Just like I said in the post How to Prevent Visitors From Accessing Non-Critical Directories. Another issue that we should be aware of, is the… Read More »How to Return "404 Not Found" Instead of "403 Forbidden"