This article source code download address: Http://xiazai.jb51.net/201007/yuanma/TraceLWord.rar
Development environment for Eclipse (PDT)
Let's focus on the middle service layer. Intermediate service layer code is relatively simple, just call the
1.PDO Introduction
PDO (PHP Data Object) is something added to PHP 5, which is a significant feature of PHP 5, since php4/php3 before PHP 5 is a bunch of database extensions to connect and process with each database, what Php_mysql.dll, Php_
Data:
SELECT: Allows data to be read.
Insert: Allows inserting and replacing data.
Updata: Allows data to be changed.
Delete: Allows data to be deleted.
File: Allows you to import data from a file and export data to a file.
Structure:
Create:
Is the mind map for this series of functions--and I'm also the first to use a mind mapping tool. The big picture is here. The Stream_socket_* series is a new addition to the PHP 5 processing socket connection functions, simple and convenient, next
But the timing of the generation has been a number of limitations, if you have a standalone server can be set up on the server scheduled tasks, but if the use of virtual host can be difficult to do. Although there are many methods. But it's easy to
Copy CodeThe code is as follows:
/**
* Converts a string containing full-width numeric characters, letters, spaces, or '%+-() ' characters to corresponding half-width characters
* @access Public
* @param string $str the string to be converted
*
1, support mass (if need to bulk multi-number in English comma (,) separated (159..,159))
2, support post or Get method to submit data
The site interface:
Http://api.heqee.com/fetion/?username= fetion Mobile phone number &passowrd= fetion phone
Remember this function:
Function Name: Ignore_user_abort
Whether the PHP program continues to execute after this function has been configured or if the use End connection is interrupted. The default value stops when the connection is interrupted.
Copy CodeThe code is as follows:
404
">
">
The site with the new domain access
The page you are currently visiting is http://www.jb51.cn
The system redirects you to the corresponding page of the new station
Later on the fire, in the virtual machine installed WIN2003 a test, loading MSSQL module is no problem, but with mssql_connect ("localhost", "sa", ""), but how also not connected to the database, and later on the Internet to check a lot of
Copy the Code code as follows:
$f =fopen ("Test.txt", "WB");
$text =utf8_encode ("a!");
Use the function Utf8_encode to change the data you want to write to the UTF encoding format.
$text = "\\xEF\\xBB\\xBF". $text;
"\\xEF\\xBB\\xBF", this string
Description
bool
Is_dir(String $filename)
Returns TRUE if the file name exists and is a directory. If filename is a relative path, the relative path is checked according to the current working directory.
Note: The result of this function will be
The Is_file () function checks whether the specified file name is normal.
Is_file-tells whether the filename is a regular file
Usage
BOOL Is_file (string $filename) $file is a required parameter
Returns TRUE if the file exists and is a normal file.
Give the Select form a single name.
Submit the form after submission in $_post or $_get mode
$_post[' sel '] or $_get[' sel ') gets the value of the selected select
Copy the Code code as follows:
if ($_post)
{
echo $_post[' select '];
}
?>
In TP, we can use the following two ways to create a data table mapping object (I used temporarily)
First type: $Test = D (' Test ')
Second type: $Test = new Model (' Test ')
Although both of these can be select,insert,delete,udpate operations on
Copy CodeThe code is as follows:
$rptype = 0 means only HTML tags are replaced
$rptype = 1 to replace HTML tags while removing contiguous whitespace characters
$rptype = 2 to replace HTML tags while removing all whitespace characters
$rptype = 1
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