Use of image processing in php articles. Array_diff ($ arr1, $ arr2) is one of the php array functions used to calculate the difference set of the array. this is one of the operations used to delete images added by sinaeditor for regular expression
PHP Tutorial: how to implement 301 redirection. What is 301 redirection? 301 redirection means that when your website address changes, such as domain name change or website revision, you want a visitor or search engine to jump to the new address to
Specification for PHPPSR-3 log interfaces
Log interface specificationThis article develops a general interface specification for the log class library.The main purpose of this specification is to allow the Log class library to record the
Laravel5.1 solution to database insertion error when submitting data (including arrays) in a form
When an array needs to be submitted to the database in the form, for example, to add some customer service QQ information, Laravel will throw
PHP automatically generate Form class
// Form. php
Class form {
Var $ layout = true; // whether to use table layout
Var $ action; // URL to which the form is submitted
PHP class for adding watermarks to images
Supports text and image watermarks. supports random watermark locations or fixed watermark transparency settings (image and text watermarks are supported) set the font, color, and size of the text
Use an IP address to determine which city the user is accessing the PHP code
Function detect_city ($ ip ){
$ Default = 'unknown ';
$ Curlopt_useragent = 'mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
Php converts Chinese characters to pinyin
Function Pinyin ($ _ String, $ _ Code = 'gb2312 ')
{
$ _ DataKey = "a | ai | an | ang | ao | ba | bai | ban | bang | bao | bei | ben | beng | bi | bian | biao | bie | bin
Php batch recursively delete folders with Files
Php's built-in rmdir can only delete empty directories. this rrmdir can recursively delete directories and all files in the directories.
Function rrmdir ($ dir ){
If
Php code for generating rounded corner images
$ Image_file = $ _ GET ['src'];
$ Corner_radius = isset ($ _ GET ['radius '])? $ _ GET ['radius ']: 20; // The default corner radius is set to 20px
$ Topleft = (isset
A class for php to generate zip files
/*
By: Matt Ford
Purpose: Basic class to create zipfiles
*/
Class zipFile {
Public $ files = array ();
Public $ settings =
PhpMIME type array
This array contains common MIME types. if you need to download files, you can view the file extension through this array to determine whether the file can be downloaded.
$ Mime_types = array ("323" => "text/h323
Php simple ftp file upload example
Example of uploading a single file to an ftp server using php
// FTP access parameters
$ Host = 'ftp .example.org ';
$ Usr = 'example _ user ';
$ Pwd = 'example _ password ';
Php class for text file operations
Var $ file;
Var $ index;
// Create a file and write it into the input.
Function null_write ($ new ){
$ F = fopen ($ this-> file, "w ");
Flock ($ f, LOCK_EX
A php function for reading remote files
A function for reading remote files, which is very useful!
Function urlfopen ($ url, $ limit = 0, $ post = '', $ cookie ='', $ bysocket = FALSE, $ ip = '', $ timeout = 15, $ block = TRUE, $
Php password strength calculation
The following php code is used to test the strength of a given password. The maximum strength is 100.
/**
*
* @ Param String $ string
* @ Return float
*
* Returns
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