图图家
首页 文章 分类 标签
更多
时光机 友情链接
1 史上超全共享单车车锁的开锁方式(含具体方案)转 6,147 阅读 2 渗透测试工具实战技巧合集 3,697 阅读 3 URP综合教务系统通杀getshell 3,276 阅读 4 pentestbox 下安装whatweb后,报IPADDR模块没有配置的解决办法。 3,163 阅读 5 Pentest BOX安装和使用 2,577 阅读
学习资料 工具 视频 笔记
登录
标签搜索
  • python
  • javascript
  • pentestbox
  • NSA
  • cms
  • linux
  • 前端知识
  • jquery
  • 安全
  • mysql
  • php
  • seafile
  • seahub
  • wdcp
侧边栏壁纸
博主昵称
Richar

  • 累计撰写 131 篇文章
  • 累计收到 4 条评论
  • 首页
  • 栏目
    • 学习资料
    • 工具
    • 视频
    • 笔记
  • 页面
    • 文章
    • 分类
    • 标签
    • 时光机
    • 友情链接
搜索到 1 篇与 php 的结果
  • PHP学习笔记:一个最简单的4位验证码生成(字母数字混编)+图片加文字水印 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,500 阅读
    • 0 评论
    • 0 点赞
博主栏壁纸
博主头像 Richar

131 文章数
4 评论量
2019 - 2020 © Richar - 图图家
RSS MAP