会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
﹏Sakura
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
···
17
下一页
2014年11月5日
PHP 获取当天 凌晨 时间戳常用代码
摘要: echo strtotime(date('Y-m-d')); 获取明天凌晨的时间戳代码:echo strtotime(date('Y-m-d',strtotime('+1 day'))); 附上测试代码:echo strtotime('2012-11-2');echo strtotime('2012...
阅读全文
posted @ 2014-11-05 10:09 ﹏Sakura
阅读(24836)
评论(0)
推荐(0)
2014年11月3日
PHP redis Api 中文文档
摘要: phpredis是php的一个扩展,效率是相当高有链表排序功能,对创建内存级的模块业务关系很有用;以下是redis官方提供的命令使用技巧:下载地址如下:https://github.com/owlient/phpredis(支持redis 2.0.4)Redis::__construct构造函数$r...
阅读全文
posted @ 2014-11-03 16:55 ﹏Sakura
阅读(1655)
评论(0)
推荐(0)
2014年10月28日
PHP imagecopyresampled 参数图示
摘要:
阅读全文
posted @ 2014-10-28 11:51 ﹏Sakura
阅读(636)
评论(0)
推荐(0)
2014年10月27日
PHP 操作mongodb api大部分方法
摘要: selectDB("banggoCMS"); //$db = $m->banggoCMS;$col = $db->dbeleComment2014;/*新增*//* $opt = array( 'fsync' => 1 //默认为 false , false时当日志配置开启时和 j...
阅读全文
posted @ 2014-10-27 17:54 ﹏Sakura
阅读(5436)
评论(0)
推荐(0)
2014年10月15日
PHP KMP算法实现
摘要: function getNext( $str ){ $ret = array(0=>0); for( $j =1; $j $l2) return $rt; $i = $p; $j = 0; $next = getNext($sstr); whil...
阅读全文
posted @ 2014-10-15 18:05 ﹏Sakura
阅读(1029)
评论(0)
推荐(0)
2014年10月3日
函数只执行一次,若再执行,直接返回上次的结果
摘要: var once = (function(){ var res = {}, i = 0 ; return function(func){ if(typeof(func) != 'function'){ alert('参数类型不正确'); ...
阅读全文
posted @ 2014-10-03 01:37 ﹏Sakura
阅读(552)
评论(0)
推荐(0)
2014年9月11日
nginx php-fpm 输出php错误日志
摘要: nginx是一个web服务器,因此nginx的access日志只有对访问页面的记录,不会有php 的 error log信息。nginx把对php的请求发给php-fpm fastcgi进程来处理,默认的php-fpm只会输出php-fpm的错误信息,在php-fpm的errors log里也看不到...
阅读全文
posted @ 2014-09-11 11:30 ﹏Sakura
阅读(40138)
评论(3)
推荐(1)
2014年8月29日
easy-ui curd方法
摘要: /** _ooOoo_ o8888888o 88" . "88 (| -_- |) O\...
阅读全文
posted @ 2014-08-29 10:14 ﹏Sakura
阅读(877)
评论(0)
推荐(0)
2014年8月5日
PHP 图片 平均分割
摘要: $filename = 'D://WWW/1.jpg';$p = 5;// Get new sizeslist($width, $height) = getimagesize($filename);$newwidth = $width;$newheight = floor($height / $p)...
阅读全文
posted @ 2014-08-05 11:04 ﹏Sakura
阅读(2542)
评论(0)
推荐(0)
2014年7月29日
PHP curl传 json字符串
摘要: $ch = curl_init(); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt(...
阅读全文
posted @ 2014-07-29 23:26 ﹏Sakura
阅读(3919)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
17
下一页
公告