随笔分类 -  PHP

摘要:Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_popu 阅读全文
posted @ 2017-12-13 11:41 大鱼海棠8
摘要:// $array 二维数组 // $sort 排序的键名 按此键名排序 $array[] = array('id'=>'1','name'=>'zhangsan','age'=>'16'); $array[] = array('id'=>'2','name'=>'lisi','age'=>'17'); $array[] = array('id'=> 阅读全文
posted @ 2017-06-09 11:26 大鱼海棠8
摘要:return [ /* * 模板参数 * $data 要返回的数据 * $msg 页面提示信息 * $code 返回的code * $wait 跳转等待时间 单位为秒 * $url 跳转页面地址 * */ //默认错误跳转对应的模板文件 'dispatch_error_tmpl' => 'publi... 阅读全文
posted @ 2017-05-23 15:25 大鱼海棠8
摘要:$t = time(); $t1 = mktime(0,0,0,date('m',$t),date('d',$t),date('Y',$t)); // 今天开始 $t2 = mktime(0,0,0,date('m',$t),1,date('Y',$t)); // 本月开始 $t3 =... 阅读全文
posted @ 2017-05-23 15:06 大鱼海棠8
只有注册用户登录后才能阅读该文。
posted @ 2017-05-23 14:54 大鱼海棠8
摘要:// 压缩文件夹 function addFileToZip($path,$zip){ $handler=opendir($path); //打开当前文件夹由$path指定。 while(($filename=readdir($handler))!==false){ if($filename != "." && $filename != ".."){//文件夹文件... 阅读全文
posted @ 2017-05-19 16:08 大鱼海棠8 阅读(181) 评论(0) 推荐(0)
摘要:phpcms\libs\functions\global.func.php里的pages()函数复制一个改名为my_pages,然后修改my_pages里的样式 找到phpcms/libs/classes/template_cache.class.php文件搜索 $str .= '$pages = 阅读全文
posted @ 2017-04-08 10:56 大鱼海棠8
摘要:批量添加数据 阅读全文
posted @ 2017-01-13 12:45 大鱼海棠8 阅读(286) 评论(0) 推荐(0)
摘要:其中一个错误提示是:Fatal error: 'break' not in the 'loop' or 'switch' context in /var/www/htdocs/hanya/ThinkPHP/Library/Org/Util/PHPExcel/Calculation/Functions 阅读全文
posted @ 2017-01-09 17:09 大鱼海棠8 阅读(185) 评论(0) 推荐(0)
摘要:1.基本请求 2.使用代理 3.带上数据 4.模拟登陆,保存cookie 5.带上cookie进入需要登录的页面 阅读全文
posted @ 2016-12-26 14:28 大鱼海棠8 阅读(300) 评论(0) 推荐(0)
摘要:把新的php版本解压到与旧的php版本相同目录 下载PHP时需要下载Thread Safe版本的才适用apache,Non Thread Safe版本的缺少dll。 在新的php文件夹根目录复制一个 php.ini-development 重命名为 php.ini打开php.ini, 搜索 exte 阅读全文
posted @ 2016-12-26 12:04 大鱼海棠8 阅读(223) 评论(0) 推荐(0)