摘要: 转载:http://www.cnblogs.com/vicenteforever/articles/1613119.html 阅读全文
posted @ 2014-11-27 11:41 水飝飞天 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.cnblogs.com/doit8791/archive/2012/05/28/2522556.html 1.varchar类型的变化 MySQL 数据库的varchar类型在4.1以下的版本中的最大长度限制为255,其数据范围可以是0~255或1~255(根据不同版本数 阅读全文
posted @ 2014-11-27 11:05 水飝飞天 阅读(20820) 评论(0) 推荐(1) 编辑
摘要: 12 阅读全文
posted @ 2014-11-26 10:43 水飝飞天 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 转载:http://blog.chinaunix.net/uid-27022856-id-3236257.html 说明:以下内容参考了抚琴煮酒的《构建高可用Linux服务器》第六章内容.搭建负载均衡高可用环境相对简单,主要是要理解其中原理。此文描述了三种负载均衡器的优缺点,以便在实际的生产应用中,... 阅读全文
posted @ 2014-11-21 14:27 水飝飞天 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 输入一个字符串,匹配字符串中连续出现的字符串、并且连续个数相等如输入aabbcc、abc、fabc、aabc、aabbc分别输出yes还是no#include#includevoid main(){ /* 思路:输入一个字符串数组a,定义一个数组b[3]={1,0,0}(其用意是默认第一个是不需要... 阅读全文
posted @ 2014-10-21 00:46 水飝飞天 阅读(1283) 评论(0) 推荐(0) 编辑
摘要: QP(Quote-Printable) 方法,通常缩写为“Q”方法,其原理是把一个 8 bit 的字符用两个16进制数值表示,然后在前面加“=”。所以我们看到经过QP编码 后的文件通常是这个样子:=B3=C2=BF=A1=C7=E5=A3=AC=C4=FA=BA=C3=A3=A1。Quote... 阅读全文
posted @ 2014-10-18 09:33 水飝飞天 阅读(871) 评论(0) 推荐(0) 编辑
摘要: /*引入文件Easyphpthumbnail.class.php引用地址:http://www.itdaodan.com/article-detail-id-252.html*/class Thumb{protected $thumblocation = 'Attachment/thumbs/' ;... 阅读全文
posted @ 2014-10-08 09:58 水飝飞天 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 表明为productclass 我想查询出menupath字段中 出现 “- "(横杆)大于3次的 记录答:1 select from productclasswhere menupathREGEXP '[[:digit:]]+-[[:digit:]]+-[[:digit:]]+-'这样就可以 不过... 阅读全文
posted @ 2014-09-26 22:54 水飝飞天 阅读(223) 评论(0) 推荐(0) 编辑
摘要: #include #define ARRAY_SIZE 10int main() { int arr[ARRAY_SIZE] = {51,116,53,120,85,66,71,98,86,100}; int i, j; for(i = 0; i arr[j+1]) { arr[j] ^= arr... 阅读全文
posted @ 2014-09-26 22:32 水飝飞天 阅读(964) 评论(0) 推荐(0) 编辑
摘要: PHP,CURL和你的安全!2014年6月5日 歪脖骇客 5条评论 9简介不应该做的事情应该怎样做简介如果最近你在美国看电视,你会经常看到一个广告——一个和蔼友善的家伙说“我希望我的电脑被病毒感染”,“我希望所有我家的照片都被人删除,找不回来。”或“我希望我的笔记本运转的声音听起来像打雷。”当然,没... 阅读全文
posted @ 2014-09-07 23:19 水飝飞天 阅读(226) 评论(0) 推荐(0) 编辑