The following is the generation of code codes, the results of programming home site test, no errors posted. If there is something that you do not understand, the programming house will explain what you don't understand. I hope I can get something for you.
-
- Session_Start ();
- $nums = rand (1000,9999);
- $_session[nums]= $nums;
- $imgs = Imagecreatetruecolor (100, 35);
- $one = imagecolorallocate ($imgs, 0, 0, 0);
- $two = Imagecolorallocate ($imgs, rand (0, 255), rand (0, 255), rand (0, 255));
- $thr = Imagecolorallocate ($imgs, rand (+), rand (+, 255), Rand (150, 255));
- Imagestring ($imgs, 6, Rand (5), Rand (3,), $nums, $two);
- for ($i = 1; $i <= 3; $i) {
- Imageline ($imgs, rand (0, 0), rand (0, +), rand (0, +), $thr);
- }
- for ($i = 1; $i <=; $i) {
- Imagesetpixel ($imgs, Rand () 0,rand () 5, $two);
- }
- Header ("Content-type:image/jpeg");
- Imagejpeg ($IMGS);
- ?>
http://www.bkjia.com/PHPjc/486153.html www.bkjia.com true http://www.bkjia.com/PHPjc/486153.html techarticle The following is the generation of code codes, the results of programming home site test, no errors posted. If there is something that you do not understand, the programming house will explain what you don't understand. ...