摘要: 支付宝即时到帐接口 环境要求 PHP5.0以上,且需要开启curl、openssl。 文档地址: https://doc.open.alipay.com/doc2/detail?treeId=62&articleId=103566&docType=1 支付宝网页即时到账功能,可让用户在线向开发者的支 阅读全文
posted @ 2017-12-26 22:47 御世制人 阅读(5657) 评论(0) 推荐(0)
摘要: 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 御世制人 阅读(2056) 评论(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 御世制人 阅读(250) 评论(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 御世制人 阅读(130) 评论(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 御世制人 阅读(15769) 评论(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 御世制人 阅读(961) 评论(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 御世制人 阅读(220) 评论(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 御世制人 阅读(198) 评论(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 御世制人 阅读(4297) 评论(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 御世制人 阅读(156) 评论(0) 推荐(0)