1. Introduction and function of regular expressions.
01. What is a regular expression?
Regular Expressions (English: Regular Expression, regex, or RegExp, abbreviated as RE), also translated as regular representations, general representations, in
Example 1
Custom Methods Merge Arrays
First look at a two-dimensional array:
The code is as follows
Copy Code
Array ( [0] => Array ( [A] => store_name [B] => Store A ) [1] => Array ( [A] => Store_owner [B] => small
Curl Implement get Submit data
The code is as follows
Copy Code
Initializes a CURL object$curl = Curl_init ();Set the URL you want to crawlcurl_setopt ($curl, Curlopt_url, ' http://www.111cn.net ');Set header, last
[Original]php+ajax to realize the simulation win file management system
//
This tutorial by the original site, reproduced please specify the place
Author: www.111cn.net
Email: drise@163.com
qq:271728967
//
The last file is the Js.js file.
Here a lot of people use Apache, very few people release 2000 simple configuration instructions, I wrote a little bit, also be shared!
Install MySQL first, the default installation path is: C:mysql; When the installation is complete, open the "Run"
file System-based page Counter example
The code is as follows
Copy Code
? Php$countfile = "Num.txt";Defines that the file written by the counter is count.txt under the current directory, and then we should test
method to read with a while to some fgets line$file _name= "1.txt";
The code is as follows
Copy Code
$FP =fopen ($file _name, ' R ');while (!feof ($FP)){$buffer =fgets ($fp, 4096);echo $buffer. " ";}Fclose ($FP);
Summary:When many people develop large PHP projects, the template technology is very useful. It can separate the work of artists and programmers and facilitate the modification and improvement of the interface, we can also easily and effectively
Application instanceThe POP3 mail receiving class has already been described in detail in the previous article. Let's take a look at how to apply this class:Include ("pop3.inc. php ");$ Host = "pop.china.com ";$ User = "boss_ch ";$ Pass = "026007 ";$
$ This-> beginTransaction ();$ This-> exec ('update people set age = 2 ');// $ Step1 = mysql tutorial _ error (); // in your class, if an SQL error is executed, obtain the error code and function The code is as follows:Copy code $ This-> exec
The code is as follows:Copy code $ File = "C:/Users/Public/Music/Sample Music/kalimbaloud "; If (! File_exists ($ file )){Exit ('media file does not exist .');} // Create a Windows Media Player interface$ Player = new COM ("WMPlayer. OCX ");$
insert title here user name: Password: duplicate password: Name: Gender: male Female Age: Mobile Phone: communication address: Email Address: user Photo: date of birth: verification code:
When you need to convert some data from utf8, cp1251 (window-1251) or cp1251 to utf8 you must use the system function iconv. Common host service providers do not allow this feature.*/Function cp1251_to_utf8 ($ s ){$ C209 = chr (209); $ c208 = chr (20
PHP is quickly promoted with ease of use, but it is not easy to say that it can be used. In fact, many programmers use it to easily establish a WEB application system, but how many people have carefully considered their code, whether it is easy to
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