easywechat 网页授权登录
使用easyWeChat进行微信网页的授权登录 public function __construct ( Request $request = null ){ parent::__construct(); $this->config = [ 'app_id' => 'wx11ca*****98df5', 'secret' => 'f860284******
使用easyWeChat进行微信网页的授权登录 public function __construct ( Request $request = null ){ parent::__construct(); $this->config = [ 'app_id' => 'wx11ca*****98df5', 'secret' => 'f860284******
下面介绍两种上传到阿里云oss的方法 一种是通过路径上传 另一种呢是通过数据流上传 public function ajax_save_pic(){ $ossconfig = [ 'KeyId' => 'm5lc@@@@@@UZ', //您的Access Key ID 'KeySecret' => 'mxVrX@@@@@BtaqKspQ', //您的Acce
下载并解压 wget https://pecl.php.net/get/swoole-4.2.13.tgz tar -zxvf ./swoole-4.2.13.tgz cd swoole-4.2.13 phpize ./configure --with-php-config=/www/server/php/72/bin/php-config make
全局配置(推荐) 所有项目都会使用该镜像地址: composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ 取消配置: composer config -g --unset repos.packagist
php curl: (60) SSL certificate problem: unable to get local issuer certificate 网站移到win服务器 1.查看php.ini位置 2.先去 https://curl.haxx.se/ca/cacert.pem 下载 CA 证书到本地 在 php.ini 中配置 curl.cainf
echo '-----1------'; echo ""; $pwd = '123456'; echo 'authcode'.''; echo 'pwd:'.$pwd.''; $mm = authcode($pwd,'','zf',0); echo 'mm: '.$mm; echo ""; echo 'jj:'.authcode($mm,'DECODE','
1. 安装扩展imap 2.composer下载 composer require php-imap/php-imap 包地址: https://packagist.org/packages/php-imap/php-imap 3.使用 public function read_email(){ // Create PhpImap\Mailbox insta
实现效果如下图: 源码如下: 引入速sdk html页面 控制层
phpspreadsheet 导出多个工作表 因为有多组数据导出,所以要新建多张工作表 实现效果 主要创建方式有两种 //方式1 $spreadsheet->createSheet(); //方式2 Create a new worksheet called "My Data" $myWorkSheet = new \PhpOffice\PhpSpreads
$slat = $banner_content['jd']; $slng = $banner_content['wd']; $sql = "select *, ROUND(6378.138*2*ASIN(SQRT(POW(SIN(($slat*PI()/180-jd*PI()/180)/2),2)+COS($slat*PI()/180)*COS(jd*PI(