Compared with explode (), the strtok () function can control the pace. Cut strings as needed. Its advantages are:
1. Multiple separators can be defined at a time. When a function is executed, it is cut by a single separator rather than the entire
This is a very simple function, iconv (). However, this function cannot be converted successfully after many examples are found online. why? At last, the Emperor did not lose heart, but the answer still found me.
This is the case on the Internet.
I used to develop a PHP project using the integrated software package of the PHPXAMPP software station. I don't know that there will be so many problems when I install each module separately. this time I spent most of my time building the
Developers who have done CMS know that background login and file upload in the LAMP environment are very prone to problems. most of them are due to PHP configuration problems, so it is vital to optimize PHP. PHP optimization is mainly for php.
Mysqlslowlog is a log tool used to record SQL statements that have been executed for a long time (beyond long_query_time seconds) to enable slow log.
There are two ways to enable: 1, in my. in cnf, log-slow-queries [= file_name] 2 is used to specify
Recently, a friend asked me if I could write a php paging class. I thought about it carefully. In fact, I haven't touched this thing for a while. let's talk about some experience, it's okay to write something simple. if it's too complicated to write,
If you do not need to re-compile PHP to add the openssl module for php, you can refer to it. Openssl
The code is as follows:
Yum-y install openssl
/Usr/local/bin/is the php installation directory.
Switch to the etx/openssl directory in
Before installing memcache, we mentioned that the memcached client is called memcache. In fact, another client based on libmemcached is memcached. it is said that memcached has better performance and more functions. Memcache
Memcache official
For more information about the use of php basic learning variables, see.
The code is as follows:
// Reference
$ One = "test ";
Two = & $ one; // equivalent to the transfer address. the two variables point to an address.
// Dynamic variables
$ One
The common. inc. php file exists, and php is not installed in the C root directory in the system. how can this problem be solved? After a while of debugging, I finally found the solution phpmyadmin
Simple method: create a directory to copy the
PHP verification code. For more information, see. The checkcode. php generates the verification code image and the variable $ _ SESSION [check_pic].
The code is as follows:
Session_start ();
For ($ I = 0; $ I $ Rand. = dechex (rand (1, 15 ));
}
$
Php getting started Knowledge Point 7: basic application of PHP functions, which are very common. you can take a look.
The code is as follows:
/*
* Simple functions
*/
Function fontBold ($ con ){
Return"
$ Con";
}
$ Str = "simple function test! ";
When I was a beginner in PHP, I read a bad book from the school library, and I didn't write any PHP code in it. when processing the form, it will automatically urldecode, therefore, I used the urldecode function to decode the Discuz X1.5 Forum of
There are already a lot of PHP unlimited classification code on the Internet, and the explanation is also in place, here, I would like to share with you the following piece of code that makes it easy to use:
The code is as follows:
//////////////
/
Php code for converting numbers to Chinese characters (algorithms). For more information about php learning, see.
The code is as follows:
// Convert a number to a Chinese character, for example, 1210 to one thousand two hundred and ten
$ Num = "8421
Recently I am studying PHPMySQL sample Final Solution. I just saw the first article about the design of the user registration module. This book provides many reusable classes for other projects. Therefore, paste the code of the first chapter and
After the setcookie function specifies the domain parameter, the performance in IE is different from that in chrome and firefox. this is not a problem with the phpsetcookie function, which is a problem with IE. The following code generates three
Today, I will share my thoughts on the infinite classification methods in php. For more information about php learning, see. There are roughly three methods for unlimited php classification,
1. the database performs a unique index by setting the
The PHP memory consumption needs to be obtained during the performance optimization process. The memory_get_usage () function can be used to obtain the current memory consumption. the function is easy to use. here we will discuss the usage and
There is a ready-made nusoap on the internet. I am not using it. if it is used, I may not know how PHP creates webservice. 1. create wsdl.
Note:
A. Non-standard webservice, which can only be accessed by PHP
B. The standard webservice must use wsdl
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