To generate a zip file in php, we only need to use one phpzip to compress the ZipArchive function. the following small series will summarize the two implementations. one is to use ZipArchive to generate a zip file, all files in another compressed
PHP5.2.2 and later versions of the GD Library implement two screenshot functions: imagegrabscreen and imagegrabwindow, which are used to intercept the entire screen and capture the screen of a window (with ALT + PrintScreen) respectively.
1. capture
Prvalue is one of the important criteria for google to measure the website. Today, we will give you a method to query the prvalue of a website using PHP. The prvalue is one of the important criteria for google to measure the website. The prvalue is
This article describes how to use php to convert Chinese characters into first letters. The main functions are: clear functions, easy modification, maintenance, and expansion; English strings: unchanged return (including numbers); Chinese strings:
PHP prohibits individual IP addresses from accessing your website. you can see how the following methods are implemented. If you want to prevent an IP address from accessing the website, you can block the IP address. this method is provided below.
In the past, I tried to verify my ID card. we often used regular expressions to determine if the user entered a full number of 15 or 18 digits and then determined whether the ID card was valid. this method is only the most basic method, the ID card
You may have seen the verification code. in this article, we will introduce how PHP implements the color-changing verification code. if you are interested, refer
The code is as follows:
Header ("Content-type: image/png, charset = 'utf-8 '");
$ Im =
Godaddy hosts are abroad. The time zone conversion may be required when the site is built outside China. The following is a convenient tool function for time zone conversion.
The code is as follows:
/*
* Time zone conversion
*/
Function
Illegal character filtering is still necessary in some cases. next we will introduce how to implement it in php. do not miss it if you are interested.
The code is as follows:
Class sqlsafe {
Private $ getfilter = "'| (and | or) \ B. +? (>|Private $
This article describes how to simulate post data submission using phpcurl.
The code is as follows:
Header ("Content-type: text/html; charset = utf8 ");
/*
* Submit a request
* @ Param $ header array set the array ("Host: devzc.com") for the domain
The Chinese language has never been very good. how can I explain this pathinfo mode and I really don't know how to say it? let's talk about the pathinfo mode in a piece of code, ThinkPHP.
The code is as follows:Http: //
Php generates a barcode online. you can create a barcode generator for your reference.
The code is as follows:
Define ('in _ CB ', true );
Include ('header. php ');
$ Keys = array ('0', '1', '2', '3', '4', '5', '6', '7 ', '8', '9', 'A', 'B',
I will share an example of php array sorting and introduce the related knowledge, skills, experiences, and some php source code.
The code is as follows:
Class = 'pingjiaf' frameborder = '0' src = 'http: // www.bitsCN.com 'scrolling = 'no'>
Sort
This article mainly introduces a simple example of php sorting two-dimensional arrays. if you need a simple example, refer to this article, and use the array_multisort function in php to sort two-dimensional arrays, for more information, see.
The Images class is an image processing class that enables image scaling. For more information, see.
The code is as follows:
/**
* The Images class is an image processing class.
* @ Package application. controllers
* @ Since 1.0
*/
Class
This article describes how to configure phpstrom with xdebug. for details, refer to http://xdebug.org/download.php to download xdebug. Find your php version. You can also copy phpinfo's information on the page http://xdebug.org/wizard.php and click
This article mainly introduces the usage and description of PHP function microtime (). If you need it, you can refer to the definition and usage.
The PHP function microtime () returns the current Unix timestamp and the number of microseconds.
PHP
This article describes how to display the html source code written to the database in the form of html source code on the page, this is a function in asp. Today, the html source code written to the database is displayed on the page in the form of
Shared memory is an effective way to exchange data between applications on the same machine. This article describes how to implement memcache cache in php. For more information, see use memcache.
Overview
Shared memory is an effective way to
Sorting two-dimensional arrays by specified key values may be difficult for some new users. The following describes how to implement this function in php.
The code is as follows:
Function array_sort ($ array, $ key ){
If (is_array ($ array )){
$
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