NGINX配置文件变更监控 重新载入nginx reload生效 基于MD5的
NGINX配置文件变更监控 重新载入nginx reload生效 基于MD5的 这个是基于MD5的 不依赖其他
NGINX配置文件变更监控 重新载入nginx reload生效 基于MD5的 这个是基于MD5的 不依赖其他
对DA的这个新模板挺敢兴趣的 很好看 而且支持移动设备 毕竟老的那套风格 实在太妈的老了啊 Web1.0时代的 […]
官方文档 https://azure.microsoft.com/en-gb/documentation/ar […]
To make multiple screenshots and place them into a sing […]
Below were the steps made to resolve the above email pr […]
Today, we’re pleased to announce that PHP 7.0 – t […]
If you have ever handled the migration of a web service […]
It helps to kick your inspiration, making certain that […]
Change Time Zone (TZ) cp /usr/share/zoneinfo/Asia/Taipe […]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
namespace NT; class Tags { public function makeTags($string) { $remove = array("a", "an", "the", "is", "are", "i", "we", "you", "he", "she", "it", "they", "has", "had", "have", "be", "been", "do", "does", "done", "did", "in", "was", "were", "here", "there", "where", "when", "how", "why", "to", "and", "or", "this", "that", "there", "those", "them", "their", "me", "my", "am", "on", "so", "at", "as", "of", "with", "will", "shall", "event"); $symbols = array(".", ",", "!", "\"", "'", "?", "/", "[", "]", "{", "}", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "-", "_", "+", "=", "\\", "`", "~"); $string = explode(" ", str_replace($symbols, " ", $string)); $tags = array(); foreach ($string as $word) { $word = strtolower(trim($word)); if (!in_array($word, $remove) && $word != "" && !is_numeric($word)) { $word = stem($word); if (!in_array($word, $tags)) $tags[] = $word; } } return $tags; } } |
基于PHP MYSQL的Tags/Tagging 标签系统设计实例 / Tagging With PHP An […]