In PHP to provide us with a few character interception functions, including substr,mb_substr,mb_strcut function, some of us PHP beginners will use substr to intercept Chinese, the results found that Chinese will have garbled, garbled we can use the
PHP is a server-side scripting language used to develop dynamic Web applications. There is no good server-side debugging tool that is one of its limitations compared to Java. Usually we are in the PHP code to add Echo, var_dump and other statements,
1.conn.php
Copy CodeThe code is as follows:
$host = "localhost"; Database server name
$user = "root"; User name
$pwd = "1721"; Password
$conn =mysql_connect ($host, $user, $pwd);
mysql_query
Summarize PHP's error handling to the newcomer.
PHP provides error handling and logging capabilities. These functions allow you to define your own error handling rules and how to modify the error records. In this way, you can change and strengthen
A character in a string specified in PHP is replaced with an asterisk we have a function that can be implemented such as Substr,preg_replace,substr_replace and so on, I give these three functions respectively to introduce an example, mainly talk
Html
First load the Raphael.js library file and the Chinamappath.js path information file in the Head section, this article does not repeat, the only difference is the need to add a div#tip in the body to display the map information of the prompt
Platform is an enterprise-class PHP application Platform environment
"Phpchina" Zend Platform is a run-time platform environment for enterprise-class PHP applications. Combining a complete set of run-time tools, Zend platform simplifies development
I will see a PHP tube in the PHP version of A, None-thread safe and the Thread safe version, then what is the difference between the two versions, but a closer look at the introduction is to establish that we use thread-safe, rather than a wire
It's 4 o'clock. Today is the last day in this company. The mood is not very good.
So write down something to vent. General stations usually take the memory as a database to use (
memcached). And a good read-write separation backup mechanism (MySQL
When we develop the network program, we often need to crawl non-local files, in general, the use of PHP simulation browser access, HTTP requests to access the URL address, and then get the HTML source code or XML data, we can not directly output
file_get_contents file is used to read and write files, but I found with file_get_contents read large file error hint note:string can be as large as 2GB, this is not more than 2G, there is no way to solve it, Let me come and see it together.
If I
Recently in can PHP directory operation, made a directory infinite traversal:
The functions used are:
Isset () Determines whether a variable is defined
ChDir () changes the current directory to the specified directory.
Opendi () to open the
This article mainly introduces the PHP operation MongoDB Concise tutorial, including connection, add, modify, delete, query and so on, the need for friends can refer to the next
The code is as follows://Connect Localhost:27017$conn = new Mongo ();
Thinkphp Release 1.0.0RC1 Latest Version
After several generations of product updates, thinkphp in the original 0.9.8 version of the foundation after a few months of reconstruction and refinement, and draw a lot of user feedback, released the latest
The 1th type of notation:
Copy CodeThe code is as follows:
Str_replace ("n", "', $str);
?>
The 2nd type of notation:Copy the Code code as follows:
Str_replace ("RN", ", $str);?>
The 3rd type of notation:Copy the Code code as follows:
Use Nginx as the proxy server, the back end is apache2. Set the file to allow uploading up to 100M maximum.
1. Nginx Configuration:
HTTP {
......
Client_max_body_size 100m;
......
}
2. PHP configuration file
......
; Maximum execution time of
Note the text in the comments section Oh ~
Copy CodeThe code is as follows:
Instantiate an array
$array = Array ();
The array consists of two parts as follows
Array (key name [key]=> value [value])
Key names are commonly used with indexes
type can
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