首页
文章
分类
标签
更多
时光机
友情链接
Search
1
史上超全共享单车车锁的开锁方式(含具体方案)转
5,191 阅读
2
渗透测试工具实战技巧合集
3,488 阅读
3
URP综合教务系统通杀getshell
3,017 阅读
4
pentestbox 下安装whatweb后,报IPADDR模块没有配置的解决办法。
2,861 阅读
5
Pentest BOX安装和使用
2,304 阅读
学习资料
工具
视频
笔记
登录
Search
标签搜索
python
javascript
pentestbox
NSA
cms
linux
前端知识
jquery
安全
mysql
php
seafile
seahub
wdcp
Richar
累计撰写
130
篇文章
累计收到
4
条评论
首页
栏目
学习资料
工具
视频
笔记
页面
文章
分类
标签
时光机
友情链接
搜索到
1
篇与
php
的结果
2017-11-16
PHP学习笔记:一个最简单的4位验证码生成(字母数字混编)+图片加文字水印
ini_set("error_reporting","E_ALL & ~E_NOTICE"); //去除末定义变量错误提示 //最简验证码*************************************** for ($i=0; $i <4 ; $i++) { $nmsg.=dechex(mt_rand(0,15)); } header("Content-type:image/png"); $im=imagecreatetruecolor(75, 25); $blue=imagecolorallocate($im, 0, 102, 255); $white=imagecolorallocate($im, 255,255,255); imagefill($im, 0, 0, $blue); imagestring($im, 5, 20, 5, $nmsg, $white); imagepng($im); imagedestroy($im); //************************************************* //图片加水印***************************** header("Content-type:image/jpeg"); define('__DIR__', dirname(__FILE__)); $im=imagecreatefromjpeg(__DIR__.'\\'.'111.jpg'); $white=imagecolorallocate($im, 255,255,255); imagestring($im, 5, 10, 10, 'http://www.tutuj.com', $white); imagejpeg($im); imagedestroy($im);
2017年11月16日
1,378 阅读
0 评论
0 点赞