
TP5
wuxing164
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
TP5 定时任务
<?phpnamespace app\cron\command ;use think\console\command ;use think\console\Input;use think\console\input\Option;use think\console\Output;/** * Created by PhpStorm. * User: Administrator * Date: 2020-11-26 * Time: 下午 1:53 */class TaskTi.原创 2020-11-26 14:21:25 · 464 阅读 · 0 评论 -
thinkphp5.1 获取系统常量
echo "app_path=========".Env::get('app_path')."</br>";echo "root_path=========".Env::get('root_path')."</br>";echo "think_path=========".Env::get('think_path')."</br>";echo "config_path=========".Env::get('config_path')."</br>";.原创 2020-11-26 13:56:57 · 749 阅读 · 0 评论 -
ThinkPHP5.1 使用 curl 推送文件到远程服务器
请注意:php版本要大于等于7以上。发送端:/** * 通过curl传输文件到远程服务器 * @param string $url 推送的远程服务器地址 * @param string $file 要推送的文件的路径 * @return bool|string */function post_files($url, $file){ $data = []; $file = realpath($file); $data = ['file' =>...原创 2020-09-15 08:55:53 · 812 阅读 · 0 评论 -
ThinkPHP5.1关于查询条件为[NOT] NULL时的写法
ThinkPHP5.1关于查询条件为[NOT] NULL时的写法$map[] = ['字段名','null',''];//查询为NULL时的条件$map[] = ['字段名','not null',''];//查询不是NULL时的条件封装数组条件:$map = [];$map[] = ['name','like','think'];$map[] = ['status','=',1];...原创 2020-09-14 20:15:52 · 2015 阅读 · 0 评论 -
TP5 where数组查询(有多个查询条件)
转自:https://www.cnblogs.com/haohaoyuan/p/8416382.html有查询条件就查询,多个查询条件,只要有查询,就增加一个查询条件 //类型 if($sotype){ $where['type'] = $sotype; } //合作单位 if($companyid){ $where['...转载 2018-09-14 16:29:58 · 5420 阅读 · 0 评论 -
nginx_https_tp5_wss配置例子
server { listen 443; server_name saas.xxxx.xxx; ssl on; ssl_certificate /usr/local/nginx/cert/mwxy/saas.xxxx.xxx.pem; ssl_certificate_key /usr/local/nginx/cert...原创 2019-04-18 09:14:30 · 408 阅读 · 0 评论 -
TP5常用
1.extend/Wxpay/Wxpay.Api.phpLoader.import('Wxpay.Wxpay',EXTEND_PATH,'.Api.php') ;引入第三方类,不是由compose安装的插件,或者没有使用命名空间原创 2019-06-09 22:21:00 · 236 阅读 · 0 评论