Example of phpheader function usage (1)
Print ""; // The cache file is normally read.
?>
Print ""; // adds a unique number to make the browser request again
W // print "";
?>
How php judges whether the wap mobile client is used
// If HTTP_X_WAP_PROFILE exists, it must be a mobile device.
If (isset ($ _ SERVER ['http _ X_WAP_PROFILE ']) {
Return true;
}
Analysis: By
Difference between mysql and mysqli
This article introduces some differences between mysql and mysqli in php. For more information, see.Difference between mysql and mysqli: Mysql and Mysqli (Mysql Improved) are two library functions (or
Usage of the phpob_start () cache function
This article introduces the usage of the ob_start () function used for cache control in php. For more information, see.In php, the ob_start () function is used to open the buffer. for example, if
Php multi-threaded function for downloading multiple remote files
This article introduces a function implemented in php that can download multiple remote files through multiple threads. For more information, see.Run the following code to
Code example for CodeIgniter to upload images
Share a piece of code for CodeIgniter to upload images. for a friend studying the php framework of CodeIgniter, you can make a reference.I used the CodeIgniter Upload class to upload images. I
Php reference (& amp;) symbol details
$ A = "ABC ";
$ B = & $;
Echo $ a; // output here: ABC
Echo $ B; // output here: ABC
$ B = "EFG ";
Echo $ a; // Here, the value of $ a is changed to EFG,
Php multi-thread webpage capture code sharing
This article introduces how to use php to capture web page code with multiple threads. For more information, see.In php, you can use Curl to complete various file transfer operations, such as
Do not write at the end of the PHP file? What are the benefits of & amp; gt;
// This is B. php
Include a. php
Session_start ();
?>
I have seen that many php files do not contain the php
PHP custom function round_pad_zero rounded to decimal places and zero
/**
* Rounded to and zero
* By bbs.it-home.org
*/
Function round_pad_zero ($ num, $ precision)
{
If ($ precision
Example of PHP filtering post and get sensitive data
/**
* Batch filter of post and get sensitive data
* By bbs.it-home.org
*/
If (get_magic_quotes_gpc ()){
$ _ GET =
PHP regular expression matches a combination of 6 to 16 characters (and can only contain digits, letters, and underscores)
This article describes how to use php regular expressions to match a combination of 6-bit and 16-bit characters.
Example of sending NetEase 126 email via phpmailer
This article describes how to use phpmailer to send NetEase 126.com emails. For more information, see.Example of sending mails using PHPMailer:
IsSMTP (); // email server $ mail-> Host
Usage of php case-sensitive conversion functions (strtolower and strtoupper)
This article describes the usage of the case-sensitive conversion functions strtolower and strtoupper in php, which are frequently encountered in character
Difference between date and gmdate in the date function in php
Echo date ('Y-m-d H: I: S', time (); output: 2013-03-14 12:15:27
Echo gmdate ('Y-m-d H: I: S', time (); output: 2013-03-14 04:15:27
The above is the
Php implements the complete registration and login program (using the mysql database)
This article describes how to use php and mysql database to implement a complete code for registration and logon. if you need it, refer to it.To enable
Php cannot call external commands
Exec (""/bin/ls-l "");
Exec (""/bin/ls-l "", $ res );
# $ Res is a data. each element represents a row of the result.
Exec (""/bin/ls-l "", $ res, $ rc );
# $ Rc
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