PHP tutorials generate thumbnail classes that support custom height and width. Also supported by high and wide
Class Resizeimage{Type of picturevar $type;Actual widthvar $width;Actual heightvar $height;The width after the changevar $resize
An absolutely easy-to-use Php/mysql/apache integration environment: easyphp
easyphp 1.5 17/08/2001
Nouvelle version avec:apache 1.3.20-php 4.0.6-mysql 3.23.40-phpmyadmin 2.2.0RC4. Quelques nouveautés:gestion des alias et des répertoires data MySQL,
Previously did a recruitment site so we need to let not collect our customer's mobile phone number and email address, so we will use PHP to realize from the database read the mobile phone number and email address directly generated a picture, so
In the PHP program, often encountered in the design of multi-level menu programming, such as our common level three menu, first show the first level of product classification, and then show the level two classification, and finally show the product,
If we are a one-dimensional data to repeat items do not say that there is a direct function, but the two-dimensional data PHP does not provide a function, the following small series to recommend two good two-dimensional array to repeat the custom
Because N long ago did some very bad action caused the site content page has some garbage data, this morning, the whole of a string to remove the hyperlink text method, I combine the regular to deal with.
The function of the following instance is to
In PHP I would like to introduce two more commonly used array filter function Array_filter and Array_unique, one is to filter the array null, one is to filter the array of duplicate values, we now look together.
GrammarArray_filter
This article provides a PHP tutorial Chinese character Verification Code generation program, if you create Chinese characters in the picture, need font file and Imagettftext function, we use the time to search online. You have to generate a random
We generate Excel will use the Phpexcel class, let me introduce you in the generation of Excel column name more than 26 columns greater than Z problem resolution.
This is the method in the Phpexcel class. I found it today, record the memo.
There are many data sorting functions in PHP, including one-dimensional array sorting function and two-dimensional array ordering function, including simple sort function ascending sort, rsort descending order, etc.
The PHP array sort function
Article collection of some commonly used to solve PHP save Chinese SQL Server 2008 garbled method, have encountered similar problems of friends can refer to this article.
When I use PHP to manipulate the database today, I find that the Chinese
PHP Image Operation class This program can obtain the image size, format and other information, but also to the image of the thumbnail processing and image watermark function Oh.
PHP Tutorial Image Manipulation ClassThis section of the program can
In PHP Open_basedir is a use of PHP is not much of a function, but open_basedir function accidentally give someone to enter your server, open_basedir in the end there is more magic we come to see it.
Let's take a look. We don't consider Open_basedir
PHP batch to the image watermark code we often encounter to a large number of images to increase the watermark, this will touch the volume increase image watermark function, we provide you with a PHP batch to increase the watermark function.
PHP
In PHP to implement the image to increase the watermark we have to use a lot of functions, imagecreatefromjpeg,imagecreatefrompng,getimagesize and so on, these are the functions of the PHP GD library, So we have to open the GD library in php.ini to
Add watermark to the picture is a lot of web site will do things, the following code only supports the text watermark Oh, now only support English, if you want this program to support Chinese characters will $font=\ ' verdana.ttf\ '; Calling a
This article to the students summed up a number of commonly used image processing functions, including scaling, cropping, zooming, flipping, rotation, transparency, sharpening function, we can refer to the reference.
Note: If you want to use the PHP
Can teach you the simplest way, for a JPG format picture, see whether the last two bytes are FFD9
If not, then it is generally not normal. In other formats, this method of judging is not applicable.Normal JPG files start with FFD8, FFD9 end, if you
Today in doing a PHP verification code program found that the generated pictures do not appear, and began to think that PHP GD library is not open, check with Phpinfo is open ah, the following small series to introduce this problem solution.
Clear
Thumbnails use the most is when we upload a picture to generate a small image, so that it can be a good solution to the image size or affect the overall beauty of the site, the following description of the generated image thumbnail class does not
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service