The Set_error_handler () function sets the user-defined error-handling function. This function is used to create the user's own error handling for the Run-time period. The function returns the old error handler, or null if it fails. Let's take a
Hide Apache and PHP version information, Web server avoids some unnecessary trouble, can put Apache and PHP version information does not show
Hide Apache Version Information
/etc/apache2/apache2.conf or/etc/httpd/conf/httpd.conf
Servertokens
Common PHP Regular expressions and grammatical annotations: a regular expression that matches a Chinese character: [U4e00-u9fa5] annotation: Match Chinese is really a headache, with this expression is good to do match Double-byte characters
This article is an example of the implementation of PHP Chinese verification code. Share to everyone for your reference. The specific analysis is as follows:
First look at the following effect chart:
The specific code is as follows:
?
The example in this article describes how PHP uses curl to get cookies without relying on cookiejar. Share to everyone for your reference. The specific analysis is as follows:
PHP Curl class is a very good tool class, the specific how to not
Optimization of the intersection of PHP arrays
Let's say we're running a mobile-related web site, and users can filter the phones they want by specifying a number of parameters (such as operating system, screen resolution, camera pixels, and so on)
This article mainly introduced the PHP through the Exif_read_data function to obtain the image EXIF information, by default, the PHP reads the picture EXIF information module is not open, we need to open this module first. To open the EXIF module
Json, as a lightweight data interchange format, is starting to get pro-Lai, with the spotlight of XML grabbing sites. Happily, PHP has also built the functionality of JSON-serialized data into functions, making it easy for Phpcoder to use JSON.In
This article mainly introduces the PHP nested output buffer Code instance, this article explains the nesting uses the OB series function instance, needs the friend to be possible to refer to under
The output cache of PHP can be nested. You can
The example in this article describes the way PHP uses substr () and Strpos () to find a particular character in a string. Share to everyone for your reference. The specific analysis is as follows:
Requirement: Look for the character in the
More than 75% of Web sites use PHP as a development language, and the popularity of wordpress,phpmyadmin and other Open-source projects has led to a slew of long tail users. However, they are typically installed but rarely upgraded. The following
This article is the PHP design pattern in a single case and a number of design patterns in the application of a detailed analysis of the introduction, the need for friends to refer to the
The single example (Singleton) pattern and the Uncommon
The Internet Information Services (IIS) built into IIS Windows systems have good support for ASPs, so it is convenient to debug ASP Web pages in IIS. But some friends of the Web page with PHP programming technology, by default, IIS is not support
We'll put dele.php and sys.php up in this section.
---------
Dele.php
Delete Message
?
Require ("sys.php");
if ($Submit)
{
if ($password <> $managepwd)
{$errorm = " password error . Not authorized to operate ...";}
Else
{
$content =file ($
Linuxaid WingThis class can be used with the bulk of the email, testing the environment is Linux, the system needs to install SendMail to useif (! defined (' mail_class_defined ')) {Define (' mail_class_defined ', 1);Class Email {function email
########
Bimage.php3
########
/*
Function description
$chartdata: Data, is an array element
$chartfont: Font Size
$chartdiameter: Determine the size of the cake (to see you hungry, hehe)
$chartlabel: Title, also an array
This article illustrates several ways to create a configurable PHP application. The ideal configuration point in the application is also discussed and a balance is sought between the application being overly configurable and overly closed.If you
PHP defines some of the following constants in the constants.
__file__
This default constant is the name of the PHP program file. If a reference file (include or require) is in the reference file, the constant is the reference file name, not the
This section of the counter with a text count, not used in the database, you can achieve the following functions:
Using a text file to implement multiple page counts reduce server I/O occupancy rate in files that require a record, just add a few
The example in this article describes the way PHP uses flock to implement file locking. Share to everyone for your reference. The specific analysis is as follows:
Flock's explanation in the official document is that flock () allows you to perform a
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