UPDATE cf_2015_company a, cf_2015_company bSET a.cname = b.linkman, a.linkman = b.cnameWHERE a.id = b.id AND CHAR_LENGTH(a.cname)5 Read More
posted @ 2014-12-18 18:42 Michael Zhang x Views(240) Comments(0) Diggs(0) Edit
终端服务器超出了最大允许连接的解决办法win7系统:运行,输入mstsc /v xxx.xxx.xxx.xxx /adminwin2003系统:运行,输入mstsc /v xxx.xxx.xxx.xxx /console【错误。经验证,其实跟上面用的是一样的】解决远程pc的回话满了后,无法登录问题 Read More
posted @ 2014-09-22 10:04 Michael Zhang x Views(282) Comments(0) Diggs(0) Edit
添加规则$.extend($.fn.validatebox.defaults.rules, { requireRadio: { validator: function(value, param){ var input = $(... Read More
posted @ 2014-07-29 17:06 Michael Zhang x Views(5126) Comments(0) Diggs(0) Edit
在配置文件中,一般会用以下配置: 'db_oracle'=>array( 'class' => 'CDbConnection', 'connectionString'=>'oci:dbname=服务器地址/服务名', '... Read More
posted @ 2014-07-23 18:43 Michael Zhang x Views(1025) Comments(0) Diggs(0) Edit
以上配置经测试,好用。 Read More
posted @ 2014-07-23 13:13 Michael Zhang x Views(592) Comments(0) Diggs(0) Edit
// echo '"; exit;//自动完成的代码是:fcom+tab键 Read More
posted @ 2014-07-15 14:58 Michael Zhang x Views(1159) Comments(1) Diggs(0) Edit
/****config.php***//******************/ignore_user_abort();//关掉浏览器,PHP脚本也可以继续执行.set_time_limit(0);// 通过set_time_limit(0)可以让程序无限制的执行下去$interval=60*30;/... Read More
posted @ 2014-06-13 13:40 Michael Zhang x Views(443) Comments(0) Diggs(0) Edit
很多项目中需要用到即时上传功能,比如,选择本地图片后,立即上传并显示图像。本文结合实例讲解如何使用jQuery和PHP实现Ajax即时上传文件的功能,用户只需选择本地图片确定后即实现上传,并显示上传进度条,上传完成后,显示图片信息。查看演示DEMO下载源码HTML本示例基于jQuery以及相当出色的... Read More
posted @ 2014-05-31 16:14 Michael Zhang x Views(599) Comments(0) Diggs(0) Edit
$Column= Column::model()->findAll();$data = array_map(create_function('$m', 'return $m->getAttributes();'), $Column); Read More
posted @ 2014-05-26 15:19 Michael Zhang x Views(284) Comments(0) Diggs(0) Edit
1 @echo off 2 set d=%date:~0,4%%date:~5,2%%date:~8,2% 3 set winrar=C:\Program" "Files\WinRAR\WinRAR.exe4 set srcDir=D:\wwwroot\wzzyw\wwwroot5 set dstDir=D:\wwwroot\wzzyw\wwwrootbak\6 set webPrefix= 7 if not exist %dstDir%%d%.rar 8 start %winrar% a -r %dstDir%%d%.rar %srcDir% 9 @echo on Read More
posted @ 2014-04-07 11:31 Michael Zhang x Views(451) Comments(0) Diggs(0) Edit