目录 1 Node.js 安装: 2 Mysql 5.7+ 安装 3 Redis 安装见文章 4 后端 rap2-delos 安装 5 前端 rap2-dolores 安装 RAP2是在RAP1基础上重做的新项目,它包含两个组件(对应两个Github Repository)。 rap...
破解图片防盗链
<?php error_reporting(E_ERROR | E_PARSE ); @ini_set('max_execution_time', '0'); @ini_set("memory_limit",'-1'); $url = $_GET["url"]; if (!empty($url) && substr($url,0,4)=='http') { ...
基于PhalApi的PHPExcel扩展实现数据导入导出
前言: 最近开发一款crm,使用PhalApi框架提供数据接口,要用公共接口来实现各个模块的数据导入导出功能。如果是单独的导入导出(一个模块一个导入导出接口)推荐大家使用 phpoffice/phpspreadsheet 。 我这...
php判断文件上传图片格式的实例详解
php判断文件上传图片格式的实例详解 判断文件图片类型 $type = $_FILES['image']['tmp_name'];//文件名 //$type = $this->getImagetype( $type ); $filetype = ['jpg', 'jpeg', 'gif', 'bmp', 'png']...
在 PHP 中生成随机字母数字字符串
在 PHP 中生成随机数有三种不同的函数。它们都将接受随机数的最小和最大可能值,并为您输出一个随机数。它们是 rand($min, $max)、 mt_rand($min, $max)和 random_int($min, $max)。 使用 rand(),您可以生成...
php的精确计算
<?php /** * 精确加法 * @param [type] $a [description] * @param [type] $b [description] */ function math_add($a,$b,$scale = '2') { return bcadd($a,$b,$scale); } /** * 精确...
php实现JWT(json web token)鉴权实例详解
class Jwt { //使用HMAC生成信息摘要时所使用的密钥(自定义) private static $key = 'key'; private static $instance = null; //头部 private static $header = [ 'alg' =...
frp常用配置详解
frp是一个非常优秀的内网穿透利器,只要有了它,再加一个公网服务器,我们可以穿透内网中的任何一个网络设备。 1、frpc.ini 客户端配置 我们甚至可以用frp反向代理网站,跟下面的反向代理桌面连接一个原理。 [...
Frps服务端一键配置脚本,Frp最新版本:0.41.0
Frps-Onekey-Install-Shell For CentOS/Debian/Ubuntu/Fedora (32bit/64bit) Install(安装) Aliyun wget https://code.aliyun.com/MvsCode/frps-onekey/raw/master/install-frps.sh -O ./install-frps.sh ...
php 正则 靓号,329533686★正则匹配连号(靓号)
匹配6位顺增 regex.Pattern = "(?:0(?=1)|1(?=2)|2(?=3)|3(?=4)|4(?=5)|5(?=6)|6(?=7)|7(?=8)|8(?=9)){5}\d" 匹配6位顺降 regex.Pattern = "(?:9(?=8)|8(?=7)|7(?=6)|6(?=5)|5(?=4)|4(?=3)|3(?=2)...