In fact, we will use flock to solve some problems when writing a file for multiple calls at the same time, so that only one user can write the file at the same time, while other users are waiting for the queue, below I will introduce how flock
Installation and configuration of Apache + php3 in WIN98/Software/apache_1_3_12_win32.exeInstalled in c: apacheConfiguration: httpd. confI. ServerType (server type)Standalone and inetdIi. ServerRoot (server root directory)ServerRoot "C:/apache"Iii.
The latest FCKeditor version is 2.5.1. It takes me some time to modify some files, which is more suitable for practical applications. for details about the modification process, refer to the instructions. You can also download the modified program
Today, I have nothing to do with a Php Aes encryption program, which is applicable to Yii extension. If you do not need to use Yii framework, put the Yii: app () in the code () -> replace params [\ 'encryption key \ '] With your default key.
AES
The principle of using php to filter malicious characters is simple. We only need to define the characters and then use foreach to traverse the Malicious character library, and use strpost to check whether there are any characters in the Malicious
We will use the str_replace function to replace strings in php. This function can also use regular expressions. The following section describes how to replace some characters in the string or the instance of the first character that appears.
Now
We use setcookie to set and delete cookies in php. It is automatically deleted when it expires. However, you may encounter a cookie that cannot expire in ff.
First, let's take a look at the instructions on deleting cookies in the php manual.
Bool
The following small series will show you several examples of php zip files. We can read the specified files in the zip package and delete the specified files in the zip package. Here we will introduce this to you.
Extract files from zip files
This article will introduce you to CURL application instances on the public platform. If you encounter such problems, please refer to them.
Curl is used to transmit data through a simulated browser. It supports many protocols such as HTPP, HTTPS,
In the form, we have a method attribute, which enables the form to be post and get. in php, we should use the corresponding get and post to receive it, the following describes the method parameters.
1. I used it before. When submitting form post,
Friends who use Baidu or google will find that if we enter a word, they will intelligently prompt us with the relevant search engine. In this way, I need to do this kind of function today because of my work, below I have sorted out two types of
Using file_get_contents to fail to request https connection issue. The prepare method is very simple. You only need to enable php_openssl. Of course, you need to install the openssl module in linux.
In the default configuration of PHP. ini, the
Here we will introduce how to use PHP's fgetcsvloud to directly read The. CSV file. It is not a real excel file. to read a real excel file, we need to use a plug-in. I will briefly introduce it below.
Excelfile (.csv)
The Code is as
When learning development, we need to know some common sense. For example, variable naming rules are a very important habit, if you develop a good naming convention for variables, the teams you work with will be more likely to accept you.
1. Class
Using a php instance to log on and log out, we usually use the session to save the information that records the user's Successful Logon. Then, when we exit, we use unset to clear the session to enable the user login and logout function, here is a
This article will introduce you to the php class that we often use this keyword, next, I will briefly analyze the usage of the php object-oriented $ this keyword. I hope this tutorial will be helpful to you.
As we know before, the attributes and
This article will introduce you to the use of strtotime or mktime to specify date data (this week, last week, this month, last month, and this quarter) Instances in php. I hope this will help you.
Strtotime definition and usage
The strtotime ()
In php, the method for destroying variables and interpreting the memory specification is to directly use the unset () function, however, the test shows that the unset address is released only when all the variables pointing to this value (for
In php, if we want to make the random sorting of arrays, we only need to use the shuffle function, but shuffle can only use one-dimensional arrays. The following small series will introduce several array sorting methods.
The shuffle function can be
In php, arrays are a special data type. php also provides us with a large number of array operation functions, which makes us feel no pressure when operating arrays, next I will summarize the php array entry notes for you.
Introduction: This article
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