Hide PHP Version
For security reasons, it is best to hide the PHP version to avoid some of the attacks caused by a PHP version vulnerability.
1, Hidden PHP version is hidden "X-powered-by:php/5.2.13″ this information."
The method is simple:
Edit
STRTR (string,from,to):
Replace one character at a distance, whichever is shorter in the From and to, for example:STRTR ("Aidenliu", "AI", "B") replaces only the a output that appears in the original string: BidenliuSTRTR ("Aidenliu", "a", "BC")
PHP has a lot of built-in sorting functions, pros and cons of various rows;Commonly used sorting functions:Sort ()-sorts an array in ascending orderRsort ()-sorts the array in descending orderAsort ()-sorts associative arrays in ascending order
PHP and Java Universal AES encryption and decryption algorithm AES refers to the Advanced Encryption Standard (encryption), is the most popular one of the current cryptographic algorithm, in Web application development, especially the external
In-depth understanding of ob function buffer mechanism and phpob mechanism in php
In php, the ob Function Buffer mechanism is shown as follows through text instructions and code analysis:
For a php programmer who just got started, the php buffer is
Text messages developed by public accounts automatically reply to php code,
This article provides examples of php text message auto-reply codes for your reference. The specific content is as follows:
1. Download PHP sample code1:
Php implements 301 redirection jump instance code and 301 redirection
In php, the 301 redirection implementation method is very simple. We only need to simply use the header to send the 301 status code and then use the header to jump. The effect is
Explanation of PHP global error handling and php global explanation
Purpose
PHP global error handling is useful in development projects and can help developers quickly locate problems and improve work efficiency. By default, global errors are output
PHP template engine Smarty built-in functions and smarty Functions
This example describes the built-in functions of the PHP template engine Smarty. We will share this with you for your reference. The details are as follows:
Smarty's built-in
Summary of common magic methods in php and php magic Summary
This article summarizes common magic methods in php in detail and shares them with you for your reference. The specific content is as follows:
1. PHP regards all methods starting with "_"
Php uses the array_merge () function to merge two arrays.
This article describes how to merge two Arrays Using the array_merge () function in php. The example shows how to use the array_merge () function in php to merge arrays. For more information,
Solve the problem that only one domain name can be set for the authorization callback page [php], callback php
The final solution is: https://github.com/liuyunzhuge/php_weixin_proxy. For more information, see the following.
User authorization
Http request encapsulation example implemented by php and php request encapsulation example
This example describes the http request encapsulation of php. We will share this with you for your reference. The details are as follows:
/*** HTTP request
PHP obtains email instances based on imap and imap obtains instances.
This example describes how PHP obtains mails Based on imap. Share it with you for your reference. The specific implementation method is as follows:
Imap is a mail interaction
PHPEMS online simulated test system source code, phpems Simulated Test System
This system is mainly used to build an online examination system, such as a driver's license or an English language practice system.I. system functions:1. Strengthen the
Php generates an Android client to scan the login QR code, android Client
The examples in this article share with you the QR code generated on the php web page and the specific code for scanning logon on the Android client for your reference. The
Sftp tutorial in php
This article mainly introduces the sftp tutorial in php. This article describes ftp protocol introduction, ssh protocol, sftp protocol and other knowledge, and provides the FTP and SFTP operation class implementation code, for
Autoloading usage in Zend Framework tutorial, zendautoloading
This example describes how to use Autoloading In the Zend Framework tutorial. We will share this with you for your reference. The details are as follows:
I. Overview
Automatic loading is
Php finds out the number of input files in the specified range and the square root is also the number of input files.This article mainly introduces php's method of finding out the number of input files within a specified range and the square root is
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