博客
关于我
PHP基础-如何实现验证码
阅读量:313 次
发布时间:2019-03-03

本文共 505 字,大约阅读时间需要 1 分钟。

"; 在header前不能有任何输出,否则出现错误$_SESSION['string'] = $string;$image_width = 120;$image_height = 30;$im = imagecreate($image_width,$image_height);$back_color = imagecolorallocate($im,rand(220,255),rand(220,255),rand(220,255));imagefilledrectangle($im,0,0,$image_width,$image_height,$back_color);for($i=0; $i<100; $i++){ $dot_color = imagecolorallocate($im,rand(0,255),rand(0,255),rand(0,255)); $x = rand(0,$image_width); $y = rand(0,$image_height); imagesetpixel($im,$x,$y,$dot_color);}for($i=0; $i

 

转载地址:http://fprm.baihongyu.com/

你可能感兴趣的文章
nagios 实时监控 iptables 状态
查看>>
WAP短信格式解析及在Linux下用C语言实现
查看>>
nagios+cacti整合
查看>>
Nagios介绍
查看>>
nagios利用NSCient监控远程window主机
查看>>
nagios安装文档
查看>>
nagios服务端安装
查看>>
Nagios自定义监控脚本
查看>>
name_save matlab
查看>>
Nami 项目使用教程
查看>>
Nancy之基于Nancy.Hosting.Aspnet的小Demo
查看>>
NAND NOR FLASH闪存产品概述
查看>>
nano 编辑
查看>>
nanoGPT 教程:从零开始训练语言模型
查看>>
NASA网站曝严重漏洞,或将沦为黑客钓鱼网站?
查看>>
Nash:轻量级、安全且可靠的脚本语言
查看>>
NAS、SAN和DAS的区别
查看>>
NAS个人云存储服务器搭建
查看>>
NAS服务器有哪些优势
查看>>
NAT PAT故障排除实战指南:从原理到技巧的深度探索
查看>>