When using PHP for development, if you add some useful methods or code snippets to your favorites, it will bring great convenience to your development work. Today we will introduce 10 super useful PHP code snippets. hope you will like them! 1. when
This article mainly introduces the problem of session logout and login in php. if you need a friend, please refer to it and hope to help you in php, if the session is used to determine whether the user logs in, this can be done when the user exits:
This article describes how to process, decode, and parse url strings in PHP. The following is a detailed example of base64_encode-encoding data using MIME base64.
Base64_encode () returns uses base64 to encode data. This encoding is designed to
There may be many ways for php to generate a QR code. This article mainly calls the google interface to generate a QR code. For more information, see
The code is as follows:
$ Data = isset ($ _ GET ['t'])? $ _ GET ['t']: 'http: // www.XXX.com ';
$
This article mainly introduces several PHP uppercase/Lowercase conversion functions, which can be used to convert letters into uppercase/lowercase letters or all uppercase/lowercase letters. For more information, see converting the first letter of
This article mainly introduces how PHP converts the URL in the text to the auolink () function of the link. it is a very simple and easy-to-use function. the original author also has some Nice PHP functions, for more information about how PHP code
This article mainly introduces the solution for php to use ZipArchive to prompt Fatalerror: ClassZipArchivenotfoundin, which is a problem frequently encountered when ZipArchive is used, for more information about how to use ZipArchive to prompt
This article mainly introduces how php converts text files to csv files. it is a very practical technique to implement the function of converting text files to output files through inheritance and extension of the SplFileObject class, for more
This article describes how to replace the ecshop background editor with the ueditor editor. we recommend that you use the editor to meet your needs.
1. Ueditor1.4.3 download(As)
: Http://ueditor.baidu.com/website/download.htmlSolve jquery
This article mainly introduces how to install and configure PHPMyAdmin on the Nginx server. it comes with a solution to slow loading of PHPMyAdmin. For more information, see
I. preparations:
1. if the root account of mysql is empty, you need to set
Some time ago, a friend asked me to help him write a product comparison function. at that time, he was just visiting the green forest digital mall and clicked on the product list to see the product comparison function, then he directly downloaded
This article mainly introduces how to view the regular expression matching result through the PHP built-in server. this method can be used to complete a lot of lightweight experiments in the work environment before moving on to the server, as we all
This article mainly introduces more than 100 lines of PHP code to implement the socks5 proxy server. if you need it, refer to more than 100 lines of PHP code to implement the socks5 proxy server. this time, swoole is used for pure asynchronous
This article mainly introduces how PHP programming can improve programming efficiency (keep these 20 points in mind). If you need to use single quotation marks instead of double quotation marks to include strings, this will be faster. Because PHP
This article describes how to add a new field to a registered user in joomla. The example shows how to add a new field to a registered user in Joomla and the related implementation skills. For more information, see Joomla.
This example describes
This article mainly summarizes the common problems of PHPmailer group sending Gmail, and sorts out an example of phpmailer sending gmail mail, if you are interested, you can refer to the many Frequently Asked Questions you encounter in the PHPmailer
This article mainly introduces some advanced cache usage in PHP Yii Framework, including page cache and session cache limiters. For more information, see
Page cachePage caching refers to caching the content of the entire page on the server side.
Use TbsZip to compress Zip files
CreateNew(); // start a new empty archive for adding files// or$zip->Open('an_existing_archive.zip'); // open an existing archive for reading and/or modifying// --------------------------------------------------//
Recently, Git @ OSC code hosting is used to share a git repository written in php that obtains Git repository information.
It uses the Git client to query the database to obtain some types of statistics.
Currently, it can obtain the hash of all
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