上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 40 下一页
摘要: Thinkphp/Library/Think下新文件文件:Csv.class.php 导出: $csv=new Csv(); $list=M("childs")->field($field)->limit(10)->select();//查询数据,可以进行处理 $csv_title=array('ID','name','email','phone','time','IP'); $csv->... 阅读全文
posted @ 2017-04-07 11:52 侠岚之弋痕夕 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 1、使用对象的方法插入数据 D用法。 $Form = D('Form'); $data['title'] = 'ThinkPHP'; $data['content'] = '表单内容'; $Form->add($data); 其实thinkphp还支持对象的方式直接向数据库插入数据,如下: $Form = D('Form'); $Form->title = 'ThinkPHP'; $For... 阅读全文
posted @ 2017-04-06 18:18 侠岚之弋痕夕 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1.ctrl+shift+p 输入remove package 选择要删掉的插件即可 2.去掉产生临死文件的插件:phptools 阅读全文
posted @ 2017-04-06 09:51 侠岚之弋痕夕 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 来源:http://blog.csdn.net/woshixuye/article/details/7422985 阅读全文
posted @ 2017-03-31 14:09 侠岚之弋痕夕 阅读(104) 评论(0) 推荐(0) 编辑
摘要: e.preventDefault()阻止事件默认行为 例如: $("a").click(function (e) { alert("默认行为被禁止喽"); e.preventDefault(); }); <a href="http://www.baidu.com">测试</a> 阅读全文
posted @ 2017-03-31 14:06 侠岚之弋痕夕 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Html助手 1 .在@app\views\test的index.php中: 'form','class'=>'form','data'=>'myself']);?> 'form-control','placeholder'=>'hehe']);?> 'form-control']);?> 'form-control']);?> ... 阅读全文
posted @ 2017-03-31 11:52 侠岚之弋痕夕 阅读(518) 评论(0) 推荐(0) 编辑
摘要: public function actionAjax() { if(isset(Yii::$app->request->post('test'))){ $test = "Ajax Worked!"; // do your query stuff here }else{ $test = "Ajax failed"; /... 阅读全文
posted @ 2017-03-31 11:02 侠岚之弋痕夕 阅读(2779) 评论(0) 推荐(0) 编辑
摘要: 1.代码片段一: 2.代码片段二: 阅读全文
posted @ 2017-03-31 11:00 侠岚之弋痕夕 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 通过传统的form表单提交的方式上传文件: <form id= "uploadForm" action= "http://localhost:8080/cfJAX_RS/rest/file/upload" method= "post" enctype ="multipart/form-data"> 阅读全文
posted @ 2017-03-31 10:51 侠岚之弋痕夕 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 先在配置文件components数组中加上: 'cache'=>array( 'class'=>'CFileCache'), 设置Cache: Yii::app()->cache->set('testcache', array(1,3,4,6));//默认有效期为一年 Yii::app()->cache->set('testcache', array(1,3,4,6), 3600... 阅读全文
posted @ 2017-03-31 10:26 侠岚之弋痕夕 阅读(1331) 评论(0) 推荐(0) 编辑
摘要: 1.问题,项目中上传文件使用插件时,windows上支持函数exif_imagetype(),而在linux上不支持。 2.PHP exif_imagetype的本质 3.解决方案: 阅读全文
posted @ 2017-03-29 18:34 侠岚之弋痕夕 阅读(4438) 评论(0) 推荐(0) 编辑
摘要: thinkphp整合Auth权限管理、支付宝、微信支付、阿里oss、友盟推送、融云即时通讯、云通讯短信、Email、Excel、PDF等等; 基于thinkphp扩展了大量的功能;而不改动thinkphp核心;非常方便的升级、移植和使用; 来源:https://github.com/baijunya 阅读全文
posted @ 2017-03-29 16:14 侠岚之弋痕夕 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 目录 1 为什么要用cURL? 2 启用cURL 3 基本结构 4 检查错误 5 获取信息 6 基于浏览器的重定向 7 用POST方法发送数据 8 文件上传 9 cURL批处理(multi cURL) 9.1 WordPress 链接检查器 10 另一些有用的cURL 选项 10.1... 阅读全文
posted @ 2017-03-29 12:04 侠岚之弋痕夕 阅读(2516) 评论(0) 推荐(0) 编辑
摘要: ***************** 阅读全文
posted @ 2017-03-29 11:29 侠岚之弋痕夕 阅读(275) 评论(1) 推荐(0) 编辑
摘要: 1.先下载核心文件:https://github.com/fengyuanchen/cropper 2. 3.对于index.html文件 4.对于main.js文件 5.对于crop.php文件 阅读全文
posted @ 2017-03-28 17:33 侠岚之弋痕夕 阅读(2651) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 40 下一页
Where is the starting point, we don't have a choice, but the destination where we can pursue!