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

网站收录代码

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

简易swoole异步消息

简易swoole异步消息-熊大百宝箱
编译安装 适用于php5.3以上版本 centOS中: 在此网站http://pecl.php.net/package/swoole选择合适的版本,我用的是1.10.5 #wget http://pecl.php.net/get/swoole-1.10.5.tgz #tar -zxvf swoole-...
4年前
08580

swoole socket 使用

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

利用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年前
05670

ThinkPHP5中如何加入插件功能

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

shell 命令

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

PHP实现文字写入图片

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

PHP图片压缩

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

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年前
06410

ffmpeg过滤视频,剔除音频的操作

ffmpeg过滤视频,剔除音频的操作-熊大百宝箱
ffprobe -v quiet -print_format json -show_format -show_streams 1.mp4 {     'streams': [         {             'index': 0,             '...
4年前
05350