感受生活、记录生活中的点点滴滴!

feed订阅 腾讯微博 新浪微博 qq 你好,欢迎光临! 

Category Archives: php技术

如何实现全国快递物流查询

2023.11.26 , , 1 Comment   539个游客飘过

PHP如何实现全国快递物流查询-快递查询 以下代码是测试好的,可以拿去直接使用。 <?php error_reporting(E_ALL || ~E_NOTICE); $host = "https://wuliu.market.alicloudapi.com";//api访问链接 $path = "/kdi"...

检测身份证号与姓名是否匹配(阿里云API接口)

2023.11.26 , , 暂无评论   539个游客飘过

直接上代码: /** * 检测身份证号与姓名是否匹配(阿里云API接口) * @return void * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\excepti...

手机端的H5页面自定义分享到微信朋友、朋友圈

2023.11.26 , , 暂无评论   539个游客飘过

最近在工作中遇到了一个功能,需要将我们手机端的H5页面自定义分享到微信朋友、朋友圈、QQ和QQ空间。 下面是我自己百度,然后自己亲身测试得到的一个方法;下面分享给大家,相互学习。 实现原理:H5的自定义分享需要用到微信公众平台的分享接口,也就是微信网页开发中的JSSDK,【具体的说明文档:https://developers.weixin.qq.com/doc/off...

linux下Thinkphp6+workerman+gateway基本简介与环境搭建

2022.09.13 , , , 暂无评论   1096个游客飘过

1、Composer安装与基本使用 https://docs.phpcomposer.com/00-intro.html 1)、下载 # curl -sS https://getcomposer.org/installer | php 或者 # php -r "copy('https://install.phpcomposer.com/inst...

PHP生成8位单个邀请码/8位卡密

2022.09.13 , , , 暂无评论   1094个游客飘过

/**PHP生成8位单个邀请码/8位卡密 * @return string **/ public function make_invite_code(){ $code="ABCDEFGHIGKLMNOPQRSTUVWXYZ"; $rand=$code[rand(0,25)].strtoupper(...

PHP如何实现图片添加文字,生成新图片

2022.09.13 , , 暂无评论   838个游客飘过

/* **生成证书图片 **$BlockHash 区块hash ** */ public function createNewPic($mer_id,$mer_name,$BlockHash,$TxID){ //背景图片 $path_1 = 'img/background_code.png'; //照片 ...

PHP 构造模拟http请求https_request支持GET和POST

2022.09.13 , , , 暂无评论   1079个游客飘过

/* **PHP 构造 模拟 http 请求 https_request 支持GET和POST */ function https_request($url, $data = null) { $curl = curl_init();//初始化 curl_setopt($curl, CURLOPT_URL, $url); cur...

Laravel配置路由出现404解决办法

2017.05.25 , , 2评论   2938个游客飘过

环境:Lnmp(nginx+php+mysql) 今天在搭建Laravel框架的时候访问显示空白页: 解决如下: cd laravel chmod -R 777 storage 在配置Laravel路由的时候报了404错误 首先分析下问题:一般出现这种情况的都是apache或者nginx配置出现问题 nginx解决办法 在location里面加上 t...

php 判断http还是https,以及获得当前url的方法

2017.02.17 , , 1 Comment   3333个游客飘过

服务器安装SSL数字证书访问URL地址是https,所以在无论是https://访问还是http://访问通行! $http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER...

文件记录网页访问量

2016.09.12 , , 1 Comment   4300个游客飘过

文件记录网页访问量,高并发下使用正常; $file = dirname(__FILE__).'/tongji.db'; //$data = unserialize(file_get_contents($file)); $fp=fopen($file,'r+'); $content=''; if...