Home >Backend Development >PHP Tutorial >php pants removal script
The content of this article is a php pants-removing script. Now I share it with everyone. Friends in need can also refer to the content of this article.
Author: ay dark影
Because of the needs of a certain cow, let me write a script. The requirements are: the injection point can only be accessed after logging in. When taking off pants, the data can be directly inserted into the database. The amount of data is about 500,000. Records left and right.
After seeing the above requirements, I thought about it and felt that php scripts were more suitable.
Advantages of my script:
(1) Because you need to log in, you can customize cookies
(2) It is fast, and general tools are Acquire records one by one, and this script uses 10 records as the basic unit. Considering the limitations of group_concat(), the default length is generally 1024 bytes. Therefore, it feels that 10 records at a time is safer. If the content obtained It is relatively short and can be changed to 20 or more lines. After testing, 5,000 pieces of data were processed in just over 11 seconds.
(3) The obtained data is directly put into the database
Disadvantage: the user needs to have a certain foundation, because of the specific situation, some places need to be slightly modified, mainly the mysql part.
Above picture:
The above is the detailed content of php pants removal script. For more information, please follow other related articles on the PHP Chinese website!