PHP//1. Drawing an image resource (creating a canvas)$image= Imagecreatetruecolor (500, 300);//2. First assign a green$green= Imagecolorallocate ($image, 22, 153, 0);//3. Fill the canvas with greenImagefill ($image, 0, 0,$green);//4. Drawing images
80,250,430,134,35,60,233,90,263,225,120,59,151,677,340,221,550,300,229,97,230,123,133,87 There are 24 numbers, one can't be less. You can modify the function to judge
Copy the Code code as follows:
/*24-Hour Bar chartAuthor:
80,250,430,134,35,60,233,90,263,225,120,59,151,677,340,221,550,300,229,97,230,123,133,87 a total of 24 numbers, no less. You can modify the function to judge
Copy Code code as follows:
? Php
/*
24-Hour Bar chart
Author: Taokey
qq:2961
PhpGD draws a 24-hour column chart. 80,250,430,134, 263,225,120, 59,151,677,340,221,550,300,229, 97,230,123,133, 80,250,430,134, 87 a total of 24 numbers can be less than one. if you want to make a mistake, you can modify the function to judge the
/*
24-Hour Bar chart
Author: Taokey
qq:29611705
* Editor: Bbs.it-home.org
*/
function H24 ($STR) {
$hour = Explode (",", $str);
$hmax = max ($hour);
$ppix = 150/$hmax;
Calculate the height of a bar
80,250,430,134, 263,225,120, 59,151,677,340,221,550,300,229, 97,230,123,133, 87, a total of 24 numbers can be less than one. If there is no error, you can modify the function to determine
CopyCode The Code is as follows: /*
24-hour column
This article describes how to use php to create a dynamic random verification code. For more information, see CAPTCHA) is the abbreviation of "Completely automation Public Turing test to tell Computers and Humans Apart" (a Completely Automated
This article describes how to use php to create a dynamic random verification code. For more information, see CAPTCHA) is the abbreviation of "Completely automation Public Turing test to tell Computers and Humans Apart" (a Completely Automated
Php creates a dynamic random verification code. This article describes how to create a dynamic random verification code in php. for details, refer to the following verification code (CAPTCHA): Completely php.
This article describes how to use php
This article describes how to use php to create a dynamic random Verification Code. For more information, see CAPTCHA) is the abbreviation of "Completely automation Public Turing test to tell Computers and Humans Apart" (a Completely Automated
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.