原创 js中test()函數在正則中使用

test() 方法用於檢測一個字符串是否匹配某個模式.返回一個 Boolean 值,它指出在被查找的字符串中是否匹配給出的正則表達式。 regexp.test(str)參數regexp 必選項。包含正則表達式模式或可用標誌的正則表達式對象。

原创 mysql編碼問題:show variables like "%char%"

原文地址:http://blog.sina.com.cn/s/blog_4a9fdb000100h8mh.htmlmysql編碼設置mysql> SHOW VARIABLES LIKE 'character_set_%';+--------

原创 linux 下的Memcached安裝和配置

轉載:http://hi.baidu.com/helios_sun/item/b902b90ed39054c12e4c6baf*************************主要是要安裝php的memcache擴展************

原创 linux下安裝phpredis擴展

1.下載php所需的模塊owlient-phpredis-90ecd17.tar.gz2.tar -zxvf owlient-phpredis-2.1.1-1-g90ecd17.tar.gz 3.cd owlient-phpredis-90

原创 冒泡排序和自定義排序usort

分別使用usort和冒泡排序對數組按name的字符串長度排序$arr = array( array('id' => 0, 'name' => '123833'), array('id' => 0, 'name' => 'aa

原创 兼容所有瀏覽器css透明度設置

.transparent_class { filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacit

原创 我的友情鏈接

51CTO博客開發技術之路---桀

原创 redis刪除list中指定index的值

Redis的List刪除命令:  lrem : lrem mylist 0 "value" //從mylist中刪除全部等值value的元素 0爲全部,負值爲從尾部開始。  ltrim: ltrim mylist 1 -1 //保留

原创 mysql之用戶授權

授權命令: 1.全部權限:grant all on *.* to [email protected] identified by "pass"; 2.部分權限:grant select,insert into on *.* to user@