jquerypostecho:1、输出1或0时,始终头部有个符号,用字符判断时无法正常判断,用数值判断时不受影响。if(!empty($phone_mob)){ echo0; }else{ //header("Content-Type:text/html;charset=utf-8"); echo1; //exit; }2、判断估计bom头问题,检查确实时头部异常字符输..
分类:
Web程序 时间:
2014-12-17 18:46:43
阅读次数:
222
$tel='要验证的联系电话';$isMob="/^1[3-5,8]{1}[0-9]{9}$/";$isTel="/^([0-9]{3,4}-)?[0-9]{7,8}$/";if(!preg_match($isMob,$tel) && !preg_match($isTel,$tel)){ exit(...
分类:
移动开发 时间:
2014-12-17 16:12:18
阅读次数:
256
在Linux Centos 4.3上安装MySQL-python-1.2.3的时候出现error: command 'gcc' failed with exit status 1,具体原因是因为没有安装mysql-devel包使用yum install mysql-devel成功解决。才想起来在运行...
分类:
数据库 时间:
2014-12-17 14:16:42
阅读次数:
238
跳转要好用,兼容的浏览器多,我曾用自动跳转页面,浏览器就是不动,最后改成header就好了if($is_pc){header("Location:dhu_login_pc.php");exit;//这里跳转到电脑页面,最好先判断}if($is_iphone){header("Location:dhu...
分类:
移动开发 时间:
2014-12-16 22:32:08
阅读次数:
277
login.html用户登录用户登录用户名:密码:conn.phpreg.php返回');}if(strlen($password)返回');}if(!preg_match('/^w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*$/',$email)){exit('错误:电子...
分类:
Web程序 时间:
2014-12-16 22:31:54
阅读次数:
324
Android编译的时候出现错误:
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
解决:
sudo apt-get install zlib1g-dev正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列【新】软件包将被安装:
zlib1...
分类:
移动开发 时间:
2014-12-16 17:10:54
阅读次数:
174
官方说法:
函数pthread_join用来等待一个线程的结束。函数原型为:
extern int pthread_join __P ((pthread_t __th, void **__thread_return));
第一个参数为被等待的线程标识符,第二个参数为一个用户定义的指针,它可以用来存储被等待线程的返回值。这个函数是一个线程阻塞的函数,调用它的线程将一直等待到被等待的线程...
分类:
其他好文 时间:
2014-12-16 17:09:58
阅读次数:
193
DescriptionIgnatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignatius should ge...
分类:
Web程序 时间:
2014-12-16 06:28:33
阅读次数:
271
1、nagios有4大状态:0:正常,显示为ok1:警告,显示为warning2:严重,显示为critical3:未知错误,显示为unkown2、脚本中状态码写法:shell脚本:exit0|1|2|3。如:正常状态为exit0。python脚本:sys.exit(0|1|2|3)。如:正常状态为sys.exit(0)。
分类:
移动开发 时间:
2014-12-15 22:03:04
阅读次数:
283
","") response.write str%>4 then exit function end if getHTTPPage=BytesToBstr(Http.responseBody,"GB2312") set http=nothing If Er...
分类:
Web程序 时间:
2014-12-14 09:25:42
阅读次数:
231