博客
关于我
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/

你可能感兴趣的文章
Nginx配置实例-反向代理实现浏览器请求Nginx跳转到服务器某页面
查看>>
Nginx配置实例-负载均衡实例:平均访问多台服务器
查看>>
Nginx配置文件nginx.conf中文详解(总结)
查看>>
nginx配置文件nginx.conf之server及server_name的意义
查看>>
nginx配置文件nginx.conf超详细讲解
查看>>
Nginx配置文件详解
查看>>
Nginx配置自带的stub状态实现活动监控指标
查看>>
Nginx配置详解
查看>>
nginx配置详解
查看>>
nginx配置详解、端口重定向和504
查看>>
nginx配置负载均衡
查看>>
nginx配置负载均衡
查看>>
Nginx配置负载均衡到后台网关集群
查看>>
Nginx配置限流,技能拉满!
查看>>