• thinkphp5用phpexcel导出导入数据

      问题描述: 最近用thinkphp5做项目,要用excel表格导出数据。tp5还是第一次使用,在网上找了好多方法,现在把成功后的使用步骤分享一下。 按照步骤来,很简单的。 解决办法: 第一步:从 h....

      发布时间:2023-06-10 浏览量:
    • tp5 nginx部署index.php入口

      phpstudy: server { listen 80; server_name www.xianzi321123.net; root D:/phpstudy_pro/WWW/www.ian.net/public; location / { index index.php index.html error/index.html; error_page 400 /error/400.html; error_page 506 /error/506.html; error_page 507 /erro....

      发布时间:2023-05-31 浏览量:
    • php通过cookie操控验证码显示隐藏

      public function index(){ // 是否显示验证码,默认不显示 $this-ProisShowAuthCode=2; if(cookie(loginNum)=3){ $this-ProisShowAuthCode=1; } $this-assign([isShowAuthCode=$this-ProisShowAuthCode]); return view(); }public function dolog(){ $captc....

      发布时间:2023-05-29 浏览量:
    • 'Cannot found the serial(`7961E289E4FD04`)\'s configuration,

      // 从本地文件中加载「微信支付平台证书」 ,用来验证微信支付应答的签名。使用composer 下载的平台证书路径添加至此 $filecert=file://.EXTEND_PATH .wechatpay_796C4533804444683DE4FD04.pem; $platformCertificateFi....

      发布时间:2023-05-18 浏览量:
    • curl_setopt_array(): cannot represent a stream of type Outpu

      在guzzle(版本6.3)设置了option中 debug为true 的时候,linux下没有问题,windows下报如下错误: curl_setopt_array(): cannot represent a stream of type Output as a STDIO FILE* // 发送请求 $resp = $instance-chain(v3/certifica....

      发布时间:2023-05-18 浏览量:
    • php 时间函数时间格式转换

      rfc3339标准时间转时间格式 function rfc3339_to_date($rfc3339_str) { $date_str = substr($rfc3339_str, 0, 19); $date_str = str_replace(T, , $date_str); return date(Y-m-d H:i:s, strtotime($date_str)); } $rfc3339_str = 2020-05-20T10:00:00+08:00; e....

      发布时间:2023-05-17 浏览量: