Now, 19 Apr 2011, CentOS still only brings PHP 5.1 with it, while PHP 5.3 is already there.
Today I want to use the filter extension which exists from PHP 5.2
To filter IP, there is lots of regular expressions (although they may not be tidy). But with the requirement of "filter private or reserved IP"
Want to rewrite URL [/a.html] as [/?page=a]? In IIS, there is no mod_rewrite module like Apache. However, it supports ISAPI. And here is an example. The environment is VS2005 express version.
As my VS2005 is a Chinese version. If my translation is not correct, please guess the correct one by yo
strcpy is not safe as it cannot limit the number of characters to be copied. strcpy_s is safe, but it cannot deal with char*. After searching for a while, I think I need a safe string copy function to handle char* and here it is:
// Initial dstRemainChar should be sizeof(dst)-1. And manually pending