There are three ways to build a PHP environment on IIS, and the pros and cons are as follows:
1, the CGI load PHP environment, is usually IIS inside the configuration interpreter for Php.exe, early more common, currently use less. Characteristic is:
In the previous tutorial you may have read XML parsing using PHP (in the middle, the full XML parser takes the first class, which takes tons of line code and extra time.) In PHP5, we can use simple XML classes to parse XML quickly in only two lines
Flash and PHP:First put two code:Flashvar loader:urlloader = new Urlloader ();
var url:http://www.111cn.net/flash_a/114/urlrequest = new Http://www.111cn.net/flash_a/114/URLRequest ("test.php");
Url.method =
A simple comparison between empty () and isset. The code is as follows:Copy code $ Var = 0; // The result is true because $ var is empty.// The result is true because $ var = 0If (empty ($ var) {echo '$ var is either 0 or not set at all ';}//
Three process control structures of the program1. Ordered structure2. Select a structure3. Loop structure The result is as follows: The code is as follows:Copy code $ D = date ("D ");If ($ d = "Tue ")Echo "Today is Tuesday ";ElseEcho "today is
If the key name already exists, the key value of the key is the value corresponding to the last key name (the subsequent one overwrites the previous one ). If the array is a digital index, the key name is re-indexed continuously.Note: If you only
Opendir syntaxOpendir (path, context) DirectoryFunction descriptionOpen the directory handle. If the opendir () function opens a directory handle, the function returns a directory stream; otherwise, false is returned. Let's take a look at opendir to
Fscanf("= 4.0.1, PHP 5" in PHP 4)Fscanf-parse the format of the input file accordingDescriptionHybrid fscanf (resource $ processing, string $ format [, Hybrid & $...])The function fscanf () is similar to sscanf (), but the input required from
Copy(PHP 4 and PHP 5)Copy-Copy an objectDescriptionBoolean copy (string $ Source, string $ dest [, resource $ background])Make the file a copy source dest.If you want to move the file, use the rename () function.ParametersSourcePath source
The usage of strrpos and strripos is the same. Let's take a look.Definition and usageTheStrrpos() The function determines whether find will appear in the string.If this function is successful, otherwise FALSE is returned.StrrposSyntaxStrrpos (string,
Definition and usageThis metaphone () function computes a key string of metaphone.The key to a metaphone is how a series of voices are spoken by English speakers.This metaphone () function can be used for spelling applications.This function returns
Let's take a look at the PHP array_diff () syntax.Definition and usageThe array_diff () function compares two or more arrays and returns the entry and value of an array from the first array, only when the value is not in any other
In php development, you often encounter reading some files. The easiest way is to use functions such as file and file_get_contents. A few simple lines of code can be easily done. However, when the file to be operated is a relatively large file,
This section describes how to use Crontab in Linux. For more information about how to use crontab, see: Linux scheduled task crontab.1. Use PHP to execute scripts in CrontabJust like calling a common shell script in Crontab (specific Crontab usage),
Php qr code generationThere are many ways to generate a QR Code by using APIs opened by google and the php QR Code library. This article focuses on using the php QR Code library to generate a QR Code.1. Code package download address:
Sorting two-dimensional arrays based on a key value is a common problem. Here we will summarize a function to sort the two key values separately. If you want more values, you can solve them by yourself.However, if the array to be sorted is a
Create a file upload formIt is very useful to allow users to upload files from forms.See the following HTML form for uploading files: The code is as follows:Copy code Filename: Pay attention to the following information about this form: The
Create a controllable resource handle and control the timeout of the file_get_contents method by controlling the resource handle timeout. This method is convenient and easy to use. The code is as follows:Copy code $ Context =
It is often necessary to determine whether a file can be accessed. You can identify it by using the http status code. 200 indicates normal access, and 404 indicates that the page cannot be found. The code is as follows: The code is as follows:Copy
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