ForDream的头像-熊大百宝箱
管理员
这家伙很懒,什么都没有写...

IMAGE_TO_FPDF

IMAGE_TO_FPDF-熊大百宝箱
$true_array_image = CommonUtils::to_pdf_image_handle($image_array,$max_pt,'/saved_attachments/',$to_pdf_save_dir,$the_id,$postfix_str); $status_code =  CommonUtils::generate_p...
4年前
06300

PHP图片压缩

PHP图片压缩-熊大百宝箱
<?php /**  * Created by PhpStorm.  * User: 20170720李雁飞  * Date: 2018/9/24  * Time: 0:10  */ class ImgCompress {     static private $_instance = null; ...
4年前
05830

PHP实现文字写入图片

PHP实现文字写入图片-熊大百宝箱
<?php /**  * Created by PhpStorm.  * User: dell  * Date: 2018/10/10  * Time: 21:05  *//**  * PHP实现文字写入图片  */ class WordsOnImg {     public $confi...
4年前
05390

shell 命令

shell 命令-熊大百宝箱
#定义变量赋值时等号两边不能有空格,否则会报命令不存在 # 运行shell脚本两种方式 # 1、作为解释参数 /bin/sh sh test.sh ;   ;  2、作为可执行文件 chmod +x ./ ./test.sh blo blog_url='l...
4年前
05050

ThinkPHP5中如何加入插件功能

ThinkPHP5中如何加入插件功能-熊大百宝箱
最近在使用ThinkPHP5开发应用,之前习惯了一些插件开发,感觉很好且,但基于现在文档不是很完善,所以自己研究了一下基础功能。将TP3.2中的插件功能迁移了过来。 加入插件的方法: 1、在系统的i...
4年前
05870

利用sqlmap实现基本的SQL注入

利用sqlmap实现基本的SQL注入-熊大百宝箱
注入基本上可分为以下三种: 1.get类:sqlmap -u 'http://xxx?x=xx' 2.post类: sqlmap -r 'xxx.txt' 3.cookie类: sqlmap -u 'http://xxx?x=xx' –cookie='x=xx&y=yy' --level=2 一 get类 1,...
4年前
05590

swoole socket 使用

swoole socket 使用-熊大百宝箱
<?php //创建websocket服务器对象,监听0.0.0.0:9502端口 $ws = new swoole_websocket_server('0.0.0.0', 9502); //监听WebSocket连接打开事件 /** * 客户端想服务器发送信息是调用函数 * $w...
4年前
05000

js右下角通知

js右下角通知-熊大百宝箱
<script src='/js/iNotify.js'></script> <script> var iNotify = new iNotify({         message: '有消息了。',//标题         effect: 'flash', ...
4年前
07560

网站收录代码

网站收录代码-熊大百宝箱
百度搜索网站收录查询PHP代码 <?php function baidu($url){ $baidu='http://www.baidu.com/s?wd=site%3A'.$url; $site=file_get_contents($baidu); preg_match('/百度为您找到相关结果约(.*)...
4年前
05520

GIT常用命令

GIT常用命令-熊大百宝箱
git配置邮箱姓名 git config --global user.name '你的名字或昵称' git config --global user.email '你的邮箱' 克隆一个项目 git clone http://qqnin.com/XXXX.git 推送 git add .      --...
4年前
05650