上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: 按位取反中,~-1=0,~0=-1,之前做字符串查找的时候一直写!==false这样的形式,其实可以用按位取反来直接判断,这样就不用管返回的具体是什么了。 以js为例: var str='abcd e fg'; var search='e'; if(~str.indexOf(search)){ /* 阅读全文
posted @ 2016-04-25 14:49 Bin_x 阅读(959) 评论(0) 推荐(0)
摘要: 修改的文件如下:global.phplib/staticpage.class.phprequire/template.phpsimple/index.php 阅读全文
posted @ 2016-03-18 10:25 Bin_x 阅读(225) 评论(0) 推荐(0)
摘要: expires可以指定浏览器缓存,加快浏览速度但是开启expires必须先指定rootserver中原来指定location / {root D:/WWW; index index.html index.htm default.html default.htm index.p... 阅读全文
posted @ 2015-12-09 11:21 Bin_x 阅读(443) 评论(0) 推荐(0)
摘要: rename函数一直报错,最后发现是windows下文件名的编码问题,如果项目文件是utf-8的话,一定要经过一步转码 $dir = $path . '/../resource/logo';$handle = opendir($dir);$command = Yii::$app->db->creat 阅读全文
posted @ 2015-10-28 15:07 Bin_x 阅读(437) 评论(0) 推荐(0)
摘要: $url = '';$info = parse_url($url);$httpClient = new HttpClient($info['host']);$httpClient->get($info['path']);if ($httpClient->getStatus() === '404') ... 阅读全文
posted @ 2015-07-15 16:10 Bin_x 阅读(461) 评论(0) 推荐(0)
摘要: 公司的网站用的是Oracle数据库,最近要导出里面的数据,使用mysql数据库 spool D:\DB\{文件名}.sql set heading off; set echo off; set feedback off; set pages 0; set termout off; set pages 阅读全文
posted @ 2015-07-13 09:16 Bin_x 阅读(3099) 评论(2) 推荐(0)
摘要: 首先说到php.ini中的两个配置output_buffering配置•Off: 表示关闭PHP输出缓存•On: 打开无限大的输出缓存•4096: 打开大小为4096Byte的输出缓存(默认)implicit_flush配置•On: 表示每次输出(如echo,print)后自动调用flush()函数... 阅读全文
posted @ 2015-06-10 11:27 Bin_x 阅读(952) 评论(0) 推荐(0)
摘要: smarty的section循环中loop与total的区别 阅读全文
posted @ 2015-06-09 15:15 Bin_x 阅读(847) 评论(0) 推荐(0)
摘要: if语句的条件修饰词 阅读全文
posted @ 2015-06-08 16:52 Bin_x 阅读(189) 评论(0) 推荐(0)
摘要: thinkphp使用 http://serverName/index.php/模块/控制器/操作 访问时,出现了 No input file specified. 的错误 解决办法: 一: 开启cgi.fix_pathinfo 配置php.ini,设置 cgi.fix_pathinfo=1,重启服务 阅读全文
posted @ 2015-05-20 15:59 Bin_x 阅读(1264) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 下一页