验证码
来源:互联网 发布:宏业软件下载 编辑:程序博客网 时间:2024/06/05 07:33
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/12 * Time: 下午3:14 */session_start();header("Content-type:text/html;charset=utf-8");header("Content-type: image/png");$width = 200;$height = 100;$im = @imagecreatetruecolor($width,$height) or die('创建图像失败');$backgroundColor = imagecolorallocate($im,rand(0,255),rand(0,255),rand(0,255));imagefill($im,0,0,$backgroundColor);$borderColor = imagecolorallocate($im,rand(0,255),rand(0,255),rand(0,255));imagerectangle($im,0,0,$width-1,$height-1,$borderColor);$textColor = imagecolorallocate($im,rand(50,180),rand(50,180),rand(50,180));$fontSize = rand(14,18);$code = rand(999,9999);imagestring($im,$fontSize,rand(20,$width/2),rand($height /2 ,$height-20),$code,$textColor);$_SESSION["mycode"] = $code;imagepng($im);imagedestroy();
0 0
- 简单验证码验证
- 验证验证码
- 验证码的验证
- 验证码的验证
- 验证码客户端验证
- java验证码 验证
- 验证码验证模块
- 手机短信验证码验证
- 验证验证码
- 表单验证+验证码
- thinkphp 验证码功能(验证验证码)
- 验证码
- 验证码
- 验证码
- 验证码
- 验证码
- 验证码
- 验证码
- SRM 697 div1 hard
- 两个乒乓球队进行比赛,各出3人。
- Java并发编程:线程间协作的两种方式:wait、notify、notifyAll和Condition
- php绘图2
- Qt常用片段代码库(持续更新)
- 验证码
- Qt绘制曲线
- 验证码php
- Spring注解详解
- 屌炸天实战 MySQL 主从复制、备份恢复方案生产环境实战
- timer用法
- 这个月不知道写博客了没
- 最短的C编译器崩溃程序
- 领略千变万化的Android Drawable (一)