http://pan.baidu.com/share/link?shareid=343815&uk=1865794164 do not know how to upload pictures, I put the picture Baidu network disk.
For example, how to verify the size of the word?
The code is as follows:
Reply to discussion
Contains a counter, a reminder statement, a user IP, and an ad image of his own.
Send a header to the browser and say I'm a picture
Header ("Content-type:image/png");
This defines the counter and puts it in a file.
$Visited =array ();
if
PHP has an extremely powerful image processing capability, which makes it easy to dynamically generate web images.
is a simple counter made using PHP.
1. General ideas:
Record the number of previous visits in a text file, and when the page is
Php generates the EAN_13 standard Barcode instance. The following is the PHP method for generating the EAN_13 standard Barcode. The php + gd environment is required.
The Code is as follows:
Function EAN_13 ($ code ){// The width of a Unit$ Lw =
01. php
/*
Drawing with Windows graphic Board
1: Create a canvas and set the size.
2: Create a pigment. (red, r Green G blue B, composed of three primary colors. The primary colors can be 0-from weak to strong ).
3: draw lines, write, draw
Class imagereport {VaR $ X; // image size X axisVaR $ Y; // the Y axis of the image size.VaR $ R; // R value of the background colorVaR $ g; //... G.VaR $ B; //... B.VaR $ transparent; // whether transparent 1 or 0VaR $ image; // Image//-------------
Next, let's take a look at the function code for php to draw a column chart. Let's take a look at it after a lot of time.
Next, let's take a look at the function code for php to draw a column chart. Let's take a look at it after a lot of time.
Php
Php file Upload class (classic easy to use-favorites) favorites a classic easy to use php file Upload class, the function is quite complete, leave it for development in reserve.
Good things are really good, haha !!!
/*** File Upload class*/Class
PHP Verification code picture cannot be output
File name global_func.php
function _code () {
Run the Verification Code
With the number of code
$_rnd_code=4;
for ($i =0; $i
$_nmsg.=dechex (Mt_rand (0, 15));
}
Save in session
$_session[' Code
The following is the PHP method for generating ean_13 standard barcodes, which requires a PHP+GD environment
Copy CodeThe code is as follows:
function Ean_13 ($code) {
The width of a unit
$LW = 2;
High barcode
$hi = 100;
The guide code was no
First you need to have network permissions, and then our matching network request is the okhttp that was previously encapsulated.
Very simple and convenient, directly copied in, rely on the package, and then call the method can be.
Here is to
Copy Code code as follows:
/**
* File Upload Class
*/
Class UploadFile {
Public $max _size = ' 1000000 ';//set Upload file size
Public $file _name = ' date ';//The renaming method is named in time, others with the given name
Public
Here My example is to use the image function in PHP to create a dynamic GIF image files, users at different times access can return different small calendar pictures, the code is as follows:
Header ("Content-type:image/gif"); $y =date (y); $m
PHP Drawing is a relatively simple thing, basic drawings such as lines, circles, rectangles, arcs, filled rectangles, filled fan, non-Chinese text printing, Chinese text printing in the code below will be a slender explanation.Need to support
Share a handy PHP authentication code class, including the call example.DescriptionIf the specified font is not applied, the imagestring () function is used, and the Imagettftext () function is used if you need to encounter the specified font. The
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.