![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
zzxiaocong
这个作者很懒,什么都没留下…
展开
-
php代码打印
利用lodop打印 打印地址。原创 2023-05-26 08:44:05 · 189 阅读 · 1 评论 -
使用ab测压
ab测压原创 2022-06-01 11:40:53 · 85 阅读 · 0 评论 -
提交gitee强制合并
$git pull origin master --allow-unrelated-histories原创 2022-05-28 08:11:06 · 305 阅读 · 0 评论 -
curl请求
if (!function_exists('curl_get')) { /** * curl请求(GET) * @param string $url 请求地址 * @param array $data 请求参数 * @param array $header 设置头部参数 * @return bool|string 返回结果 * @author 牧羊人 * @date 2019/4/5 */ function curl_get($url, $data =原创 2022-05-24 10:42:25 · 104 阅读 · 0 评论 -
阿里云发送短信
<?phpnamespace app\index\controller;use think\Controller;class SignatureHelper extends Controller{ /** * 生成签名并发起请求 * * @param $accessKeyId string AccessKeyId (https://ak-console.aliyun.com/) * @param $accessKeySecret strin原创 2022-04-13 11:50:41 · 436 阅读 · 0 评论 -
base64文件流转为文件保存
$label_content='base64位文件流';$label_url='保存文件路径';$img = base64_decode($label_content);$a = file_put_contents($label_url, $img);原创 2021-12-28 10:43:49 · 543 阅读 · 0 评论 -
tp6踩坑where查询为空或者不为空的字段Argument 4 passed to think\\db\\Builder::parseExp() must be an instance of thi
if(input('url')=='1'){ $where[]=['url','<>',''];}if(input('VR_JOB_URL')=='2'){ $where[]=['url','=',null];}原创 2021-12-22 11:35:40 · 2210 阅读 · 0 评论 -
php数组下标从0开始
$item = array_merge($item);原创 2021-09-04 16:39:36 · 1093 阅读 · 0 评论 -
php删除缓存文件循环删除文件夹下的所有文件
循环删除文件夹下的所有文件function delCache($path, $delDir = FALSE) { $message = ""; $handle = opendir($path);//打开目录 if($handle){ while (false !== ( $item = readdir($handle) )) {//判断目录 if ($item != "." && $item != "..") {原创 2021-08-11 18:40:48 · 152 阅读 · 0 评论