摘要: substring主要是截取字符串用的,有两个参数start, end起始位置与末末尾位置,split()主要是通过正则表达式来查找所有字符并将所有匹配的结果以数组形式返回。 阅读全文
posted @ 2013-04-26 17:37 jason&li 阅读(216) 评论(0) 推荐(0) 编辑
摘要: layout class="grid-view grid-view-loading"class='loadding'<div> <img src=""></div> 阅读全文
posted @ 2013-04-26 17:36 jason&li 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 网站 http://blog.webnotes.cn/upload-image-crop-with-jquery-and-php/ http://odyniec.net/projects/imgareaselect/ 阅读全文
posted @ 2013-04-26 17:35 jason&li 阅读(319) 评论(0) 推荐(0) 编辑
摘要: Php篇 一 配置 1) Php.ini display_errors=(boolen) 错误信息是否显示到屏幕 生产环境必须关闭 output_buffering = On 设一个输出处理器自动地打开输出缓冲 register_globals=off 开启全局变量(安全问题 做关闭操作) max_ 阅读全文
posted @ 2013-04-26 17:28 jason&li 阅读(361) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-04-26 17:23 jason&li 阅读(49) 评论(0) 推荐(0) 编辑
摘要: yii笔记02(CHtml表单)http://www.yiichina.com/api/CHtmlyii可是使用CHtml helper类创建表单,通过CHtml创建的表单有一点好处是可以配合内置的model类实现表单提交前的验证,而不需写额外的代码,并且还能实现js验证.不需要写额外的代码.创建form标签:原生方式:<form name="myform" action="yii/index.php/test/edit" method="post">//some code</form>yii方式:<?p 阅读全文
posted @ 2013-04-26 13:48 jason&li 阅读(364) 评论(0) 推荐(0) 编辑
摘要: <?phpfunction array_merge_rec(&$array) { // 参数是使用引用传递的 // 定义一个新的数组 $new_array = array (); // 遍历当前数组的所有元素 foreach ( $array as $item ) { if (is_array ( 阅读全文
posted @ 2013-04-24 10:34 jason&li 阅读(200) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/y0umer/archive/2013/01/15/2860541.html 阅读全文
posted @ 2013-04-24 08:53 jason&li 阅读(150) 评论(0) 推荐(0) 编辑
摘要: CArrayDataProvider Object( [keyField] => id [rawData] => Array ( [0] => Array ( [id] => [ad_cnt] => 1 [ad_checking_cnt] => 0 [ad_checkend_cnt] => 1 [ad_balance] => ¥... 阅读全文
posted @ 2013-04-23 16:08 jason&li 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 也支持同 mysql 一样的读取启动配置文件的方式来启动数据库,配置文件的内容如下 [root@localhost bin]# cat /etc/mongodb.cnf dbpath=/data/db/启动时加上”-f”参数,并指向配置文件即可 [root@localhost bin]# ./mongod -f /etc/mongodb.cnf Mon May 28 18:27:18 [initandlisten] MongoDB starting : pid=18481 dbpath=/data/db/ 32-bit ...... Mon May... 阅读全文
posted @ 2013-04-23 16:04 jason&li 阅读(135) 评论(0) 推荐(0) 编辑