07 2018 档案

websocket客户端实现
摘要:Echo Test 发送 阅读全文

posted @ 2018-07-23 17:01 薇薇123456 阅读(217) 评论(0) 推荐(0)

cakephp中sql查询大于
摘要:$list = $this->Capital->find('all', array('conditions'=>array('amount >'=>0))); 阅读全文

posted @ 2018-07-21 21:19 薇薇123456 阅读(83) 评论(0) 推荐(0)

cakephp获取最后一条sql语句
摘要:1.在app\config\core.php中设置Configure::write('debug', 2); 2.页面上追加如下代码: $dbo = ConnectionManager::getDataSource('default'); $logs = $dbo->getLog(); $lastLog = end($logs['log']); echo $lastLog['query'];... 阅读全文

posted @ 2018-07-20 23:43 薇薇123456 阅读(143) 评论(0) 推荐(0)

iconv()错误
摘要://转换字符编码过程中报错,数据会丢失,解决办法:设置第二个参数为gbk//IGNORE $strexport=iconv('UTF-8',"GBK",$strexport); $strexport = iconv("utf-8","gbk//IGNORE",$strexport); 阅读全文

posted @ 2018-07-20 15:15 薇薇123456 阅读(185) 评论(0) 推荐(0)

sql时间戳转日期格式
摘要:FROM_UNIXTIME(ctime, '%Y-%m-%d %H:%i:%s') 阅读全文

posted @ 2018-07-19 17:13 薇薇123456 阅读(198) 评论(0) 推荐(0)

curl传post数据流
摘要: 阅读全文

posted @ 2018-07-19 16:37 薇薇123456 阅读(206) 评论(0) 推荐(0)

ajax数据流传参
摘要: 阅读全文

posted @ 2018-07-19 16:30 薇薇123456 阅读(116) 评论(0) 推荐(0)

接口报错
摘要:前端反映接口报错,用postman模拟又没问题,请做以下检查 1.接口地址错没错; 2. 接口传参错没错 3.传参方式错没错 阅读全文

posted @ 2018-07-19 16:30 薇薇123456 阅读(212) 评论(0) 推荐(0)

ecshop适配php
摘要:https://www.cnblogs.com/xiwang6428/p/5460155.html 阅读全文

posted @ 2018-07-18 18:33 薇薇123456 阅读(135) 评论(0) 推荐(0)

php识别二维码
摘要:php-zbarcode 是 PHP 读取条形码的扩展模块,目前仅支持 php5.x 阅读全文

posted @ 2018-07-18 16:39 薇薇123456 阅读(126) 评论(0) 推荐(0)

扩展安装目录
摘要:/usr/local/ 阅读全文

posted @ 2018-07-18 16:28 薇薇123456 阅读(93) 评论(0) 推荐(0)

crontab定时任务
摘要:第1列分钟0~59 第2列小时0~23(0表示子夜) 第3列日1~31 第4列月1~12 第5列星期0~7(0和7表示星期天) 阅读全文

posted @ 2018-07-18 11:49 薇薇123456 阅读(169) 评论(0) 推荐(0)

nano编辑器
摘要:1.ctrl+O 2.回车 3.ctrl+exit 阅读全文

posted @ 2018-07-18 11:43 薇薇123456 阅读(140) 评论(0) 推荐(0)

div清空填充
摘要:1.清空 2.填充 阅读全文

posted @ 2018-07-17 16:48 薇薇123456 阅读(110) 评论(0) 推荐(0)

button作用类似于submit
摘要:不想提交,可使用以下 阅读全文

posted @ 2018-07-17 16:46 薇薇123456 阅读(81) 评论(0) 推荐(0)

sql拼接字符串
摘要:update boc_loan_apply set birthday=concat(birthday,'-01'); 阅读全文

posted @ 2018-07-17 11:30 薇薇123456 阅读(116) 评论(0) 推荐(0)

sql字段长度等于
摘要:select count(*) from boc_loan_apply where length(birthday)=7; 阅读全文

posted @ 2018-07-17 11:29 薇薇123456 阅读(147) 评论(0) 推荐(0)

表格中的文字居中显示
摘要: 阅读全文

posted @ 2018-07-17 09:27 薇薇123456 阅读(107) 评论(0) 推荐(0)

JSON_UNESCAPED_UNICODE
摘要:JSON_UNESCAPED_UNICODE(中文不转为unicode) 阅读全文

posted @ 2018-07-13 19:24 薇薇123456 阅读(80) 评论(0) 推荐(0)

linux换行PHP_EOL
摘要:$file = 'log.txt';file_put_contents($file,$param.PHP_EOL,FILE_APPEND); 阅读全文

posted @ 2018-07-13 19:04 薇薇123456 阅读(128) 评论(0) 推荐(0)

linux 当前位置
摘要:pwd 阅读全文

posted @ 2018-07-13 18:35 薇薇123456 阅读(88) 评论(0) 推荐(0)

ecshop不支持mysql
摘要:原因:mysql版本过高 阅读全文

posted @ 2018-07-13 17:15 薇薇123456 阅读(840) 评论(0) 推荐(0)

修改apache的默认访问路径
摘要: 阅读全文

posted @ 2018-07-13 16:19 薇薇123456 阅读(148) 评论(0) 推荐(0)

安装https证书
摘要:一、apache 1.在Apache的安装目录下创建cert目录,将下载的全部文件拷贝到cert目录中 2.修改httpd.conf文件,开启 3.修改httpd-vhost.conf文件 <VirtualHost *:443> ServerName qmzg.boc7.net SSLEngine 阅读全文

posted @ 2018-07-13 16:13 薇薇123456 阅读(254) 评论(0) 推荐(0)

array_column()
摘要:array_column($arr,value) 返回输入数组中某个单一列的值。 array_column($arr,value,key) 返回输入数组中某个单一列的值,value是值,key是键。 阅读全文

posted @ 2018-07-13 09:55 薇薇123456 阅读(123) 评论(0) 推荐(0)

模板下载
摘要:http://www.h-ui.net/H-ui.admin.shtml 阅读全文

posted @ 2018-07-11 18:36 薇薇123456 阅读(79) 评论(0) 推荐(0)

array_flip
摘要:数组键值对翻转 阅读全文

posted @ 2018-07-11 16:15 薇薇123456 阅读(69) 评论(0) 推荐(0)

qy Undefied index报错
摘要:目测是不支持如下写法 阅读全文

posted @ 2018-07-11 16:14 薇薇123456 阅读(83) 评论(0) 推荐(0)

strip_tag
摘要:strip_tag:去除字符串里的html标签 阅读全文

posted @ 2018-07-11 11:27 薇薇123456 阅读(81) 评论(0) 推荐(0)

query使用
摘要:1.row_array():返回查询结果中的第一条数据 2.result_array():以数组的形式返回所有的查询结果 3.query():执行非查询之外的sql语句 阅读全文

posted @ 2018-07-10 16:05 薇薇123456 阅读(4573) 评论(0) 推荐(0)

tp5 sql 大于小于
摘要:1.大于 2.小于 阅读全文

posted @ 2018-07-09 20:09 薇薇123456 阅读(398) 评论(0) 推荐(0)

取消修改
摘要:取消 阅读全文

posted @ 2018-07-09 14:49 薇薇123456 阅读(69) 评论(0) 推荐(0)

占当前窗口的80%
摘要: 阅读全文

posted @ 2018-07-09 14:33 薇薇123456 阅读(62) 评论(0) 推荐(0)

关闭当前页面
摘要: 阅读全文

posted @ 2018-07-09 14:32 薇薇123456 阅读(97) 评论(0) 推荐(0)

csv乱码
摘要:可能:iconv转码导致,本身已经是GBK,又进行了GBK转码 阅读全文

posted @ 2018-07-07 22:23 薇薇123456 阅读(124) 评论(0) 推荐(0)

iconv()
摘要:将字符串从UTF-8转换成GBK 阅读全文

posted @ 2018-07-07 22:22 薇薇123456 阅读(130) 评论(0) 推荐(0)

cakephp中sql查询between
摘要:$trading_list = $this->Trading->find('all', array('conditions' => array('buy_time BETWEEN ? AND ?' =>[$start_date, $end_date]))); 阅读全文

posted @ 2018-07-07 21:25 薇薇123456 阅读(127) 评论(0) 推荐(0)

虚拟机上linux与windows之间复制粘贴
摘要:参考:https://blog.csdn.net/qq_34501940/article/details/51222119 阅读全文

posted @ 2018-07-02 23:27 薇薇123456 阅读(145) 评论(0) 推荐(0)

cakephp跳转到指定的错误页面
摘要:第一步:修改core.php 第二步:创建AppExceptionRender.php文件 参考:https://blog.jordanhopfner.com/2012/09/11/custom-404-not-found-error-pages-in-cakephp-2/ 阅读全文

posted @ 2018-07-02 18:12 薇薇123456 阅读(148) 评论(0) 推荐(0)

设置ctp文件按html文件解析
摘要: 阅读全文

posted @ 2018-07-01 21:52 薇薇123456 阅读(111) 评论(0) 推荐(0)

导航