php中变量给另一个文件使用 70
如图,从主页输出1.PHP中的$yzm求解<?phpheader("Content-type:image/jpeg");$one=chr(rand(97,122));$t...
如图,从主页输出1.PHP中的$yzm求解<?php header("Content-type: image/jpeg");$one=chr(rand(97,122));$two=rand(1,9);$three=chr(rand(65,66));$four=rand(1,9);$yzm=$one.$two.$three.$four;$seve="";$width=120;$height=40;$font='stylu.ttf';$image=imagecreatetruecolor($width,$height);$color_bg=imagecolorallocate($image,rand(100,200),rand(100,200),rand(100,200));$color_dian=imagecolorallocate($image,rand(0,100),rand(0,100),rand(0,100));$color_xian=imagecolorallocate($image,rand(0,100),rand(0,100),rand(0,100));$color_ziti=imagecolorallocate($image,rand(50,100),rand(50,100),rand(50,100));imagefill($image,0,0,$color_bg);imagettftext($image,rand(25,28),rand(0,10),rand(5,25),rand(35,39),$color_ziti,$font,$yzm);$_SESSION['authcode'] = $yzm;for ($i=0; $i<=50; $i++) {imagesetpixel($image,rand(0,$width-1),rand(0,$height-1),$color_dian);}for ($i=0; $i<=5; $i++) {imageline($image,rand(0,$width/2),rand(0,$height),rand($width/2,$width),rand(0,$height),$color_xian);}imagejpeg($image);imagedestroy($image);?>
展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询