11 2020 档案
摘要:1.图片防盗 r.com/img.php: <img src="http://r.com/img/logo.jpg"/>.htaccess:当来源不为空且不是以localhost开始,则判定为非法 RewriteCond %{HTTP_REFERER} !^$ #RewriteCond %{HTTP
阅读全文
摘要:文章转载自: https://www.cnblogs.com/-beyond/p/8325144.html https://blog.csdn.net/expleeve/article/details/6621885/ 图-1:重写规则集中的控制流 使用apache伪静态需要修改apache配置文件
阅读全文
摘要:<?php use Swoole\Http\Server; $http = new Server('0.0.0.0', 9501); $http->on('request', function($request, $response) { // var_dump($response); $filen
阅读全文
摘要:1.下载composer.phar文件 https://install.phpcomposer.com/composer.phar 2.将composer.phar移动到与php.exe程序同一个目录,并创建composer.bat composer.bat文件添加如下一段内容 @php "%~dp
阅读全文
摘要:1.打开项目根目录,使用 git init 命令,初始化一个git本地仓库(项目),会在本地创建一个 .git 的文件夹 git init 2.在码云创建项目TestApp 3.使用git remote add origin TestApp的git克隆地址 //添加远程仓库// 示例:git rem
阅读全文
摘要:1.在php7.*安装好的前提,下载解压swoole [root@localhost html]# wget http://pecl.php.net/get/swoole-4.2.10.tgz [root@localhost html]# wget http://pecl.php.net/get/s
阅读全文
摘要:1.定义全局配置 manifest.json { "name": "AmazonImageAssistant", // 插件名称 "description" : "Download", // 插件描述 "version": "1.0", // 插件版本 "manifest_version": 2,
阅读全文
摘要:function downFile (imgsrc, name) { //下载图片地址和图片名 let image = new Image(); // 解决跨域 Canvas 污染问题 image.setAttribute("crossOrigin", "anonymous"); image.onl
阅读全文