摘要: 因为你域名 HTTP变成了HTTPS了在 curl_get方法中写一个 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); 就OK了 public static function curl_getth($url){ // die(6); $testurl 阅读全文
posted @ 2021-01-12 10:50 79524795 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 案例(全): 1. 图片接口定义 这个在TP框架中 <?phpnamespace app\api\controller; use think\App;use think\Db; class Image{ public function online() // 定义在线图片接口 { $data = D 阅读全文
posted @ 2021-01-07 16:33 79524795 阅读(210) 评论(0) 推荐(0) 编辑
摘要: <td align="center">{:date('Y-m-d H:i:s', $item.create_time)}</td> 在 date前面加一个 : 冒号 阅读全文
posted @ 2021-01-05 18:54 79524795 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1. use think\Controller; 2. class Index extends Controller 3. $this->success('添加成功', url('img')); $this->success('添加成功', url('/index/index/img')); 应用/ 阅读全文
posted @ 2021-01-05 18:51 79524795 阅读(98) 评论(0) 推荐(0) 编辑
摘要: readonly disabled <input class="form-control" value="{$_GET['id']}" id="cate_name" placeholder="" name="id" required="" type="text" readonly > 能传值 <in 阅读全文
posted @ 2020-12-29 15:28 79524795 阅读(292) 评论(0) 推荐(0) 编辑
摘要: img.php页面 传值到updata页面 : {volist name="data" id="item"} <tr> <td align="center">{$item.id}</td> <td align="center">{$item.user}</td> <td align="center" 阅读全文
posted @ 2020-12-29 14:49 79524795 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 添加数据 user 是表的 一个列 pwd 也是表的一个列 $re= ['user'=>$data['user'], 'pwd'=>$data['pwd']]; $r= Db::table('dyg')->insert($re); echo $r ; 阅读全文
posted @ 2020-12-29 11:30 79524795 阅读(60) 评论(0) 推荐(0) 编辑
摘要: ims_modules所有模块的名字 也就是模块信息 表 阅读全文
posted @ 2020-12-29 10:45 79524795 阅读(53) 评论(0) 推荐(0) 编辑
摘要: TP5.1下载用composer下载,如果下载太慢,请用阿里云镜像: composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ composer下载命令: composer create-proje 阅读全文
posted @ 2020-12-28 14:29 79524795 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1.增 //$result = pdo_insert($tablename,$data=array(),$replace=false); 把creat_time 的默认值 写成 CURRENT_TIMESTAMP 类型是timestamp。添加数据的时候自动生成creat_time 。不用写添加cr 阅读全文
posted @ 2020-12-21 16:49 79524795 阅读(280) 评论(0) 推荐(0) 编辑