摘要: 1:判断登录 public function main(){ //dump(session('admin_id'));die; if(!session('admin_id')){ $this->success('未登录',U('index/login'),2); } $this->display() 阅读全文
posted @ 2017-12-26 22:42 御世制人 阅读(2042) 评论(0) 推荐(0) 编辑
摘要: //打印 function p($res,$exit = 0){ echo '<pre>'; print_r($res); echo '</pre>'; if($exit){ exit(); } } // 是否正整数 function is_positive_integer($num = 0) { 阅读全文
posted @ 2017-12-26 22:38 御世制人 阅读(243) 评论(0) 推荐(0) 编辑
摘要: //打印 function p($res,$exit = 0){ echo '<pre>'; print_r($res); echo '</pre>'; if($exit){ exit(); } } // 是否正整数 function is_positive_integer($num = 0) { 阅读全文
posted @ 2017-12-26 22:38 御世制人 阅读(128) 评论(0) 推荐(0) 编辑
摘要: <meta charset="utf-8"> <?php /** * 自定义方法输出异常信息 */ $i=11; try { if ($i==1) { echo "zhebushiyichang"; } else { throw new Exception('一場'); } } catch (Exc 阅读全文
posted @ 2017-12-26 22:37 御世制人 阅读(15758) 评论(0) 推荐(0) 编辑
摘要: <?php //简单形式 header('Content-Type:text/html;charset=utf-8'); //避免输出乱码 $output = array(); $a = @$_GET['a'] ? $_GET['a'] : ''; $uid = @$_GET['uid'] ? $_ 阅读全文
posted @ 2017-12-26 22:36 御世制人 阅读(945) 评论(0) 推荐(0) 编辑
摘要: 2017-05-28 12:39:22作者:分类:[] SELECT TABLE_SCHEMA, TABLE_NAME FROM information_schema.`COLUMNS` WHERE COLUMN_NAME = 'level' 查询出来的是表名 阅读全文
posted @ 2017-12-26 22:35 御世制人 阅读(207) 评论(0) 推荐(0) 编辑
摘要: sphinx笔记 下载中文版coreseek包 1:解压后,将etc下的mysql。conf文件复制一份放到上级目录下,改名为sphinx。conf 2:配置文件: 2.1:source配置数据源 source goods 你要为那些数据建索引,比如,为php39数据库中的p39—goods表为数据 阅读全文
posted @ 2017-12-26 22:34 御世制人 阅读(188) 评论(0) 推荐(0) 编辑
摘要: @media (max-width:1300px) {} @media (max-width:1080px) {} @media (max-width:799px) {} @media (max-width:720px) {} @media (max-width:460px) {} @media ( 阅读全文
posted @ 2017-12-15 10:27 御世制人 阅读(4278) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head><link rel="stylesheet" href="css/style.css" type="text/css" /><meta charset="utf-8" /><title>CSS3悬停放大图片两边模糊显示 - 站长素材</title 阅读全文
posted @ 2017-12-14 14:01 御世制人 阅读(149) 评论(0) 推荐(0) 编辑
摘要: set times 2017、12、12 设置键名键值 get times 获取键名 exists times 检测键名是否存在 type times 键名的类型 expire times 6 设置键名有效期6秒 set timess 2017-12-12-22-51 ex 8 设置键名timess 阅读全文
posted @ 2017-12-12 23:16 御世制人 阅读(161) 评论(0) 推荐(0) 编辑