PHP uses POP3 to read mailbox and receive mail

1 <?php 2 $array_values['host'] = "host"; 3 $array_values['port'] = 110; 4 $array_values['user'] = 'user name'; 5 $array_values['password'] = 'Password'; 6 $array_values['checkmail'] = 'xxx@xxx.xxx'; 7 8 ganji_get_test_mail($array_values); 9 10 function ganji_get_test_mail($array_values) 11 { 12 $host = $array_values['host' ...

Posted by mtimdog on Thu, 07 May 2020 16:01:23 +0200

PHP-7.1.6 source compilation and installation

Explain php5 and php7 can be installed in an apache server at the same time, but only one of them can run. The other needs to comment out the corresponding LoadModule in the apache configuration file 1. Download and install [root@dl-001 src]# wget http://cn2.php.net/distributions/php-7.1.6.tar.gz [root@dl-001 s ...

Posted by cdinca on Tue, 05 May 2020 20:06:12 +0200

Android uses WeChat, Alipay and qq wallet H5 to pay.

There was a project before Android using webview to load the contents of the web page, and then adding the original function of APP. This project has the integration of WeChat, Alipay, qq wallet and other H5 payment methods. Recently, the content of the payment version has been upgraded on the webpage side, resulting in ...

Posted by fotofx on Mon, 04 May 2020 21:35:36 +0200

3, Insert sort

1. Algorithm principle Insertion sorting is to insert a data into the ordered data that has been arranged, so as to get a new ordered data with one number plus one. This algorithm is suitable for sorting a small amount of data. The time complexity is O(n^2) and the space complexity is O(1). Insertion sort is a s ...

Posted by maxmjessop on Sun, 03 May 2020 07:17:23 +0200

php WeChat official account sends template messages

Let's talk about the implementation process of sending WeChat template messages to the official account in the development project (I use Thinkphp5.0). First look at the effect, as shown in the figure: It is similar to this. Let's talk about the implementation process: Step one: WeChat official account application template message permissions: ...

Posted by IgglePiggle on Thu, 30 Apr 2020 20:56:11 +0200

php's closure function()use() {}

PHP's Closure is an anonymous function. It was introduced by PHP5.3. The syntax of closures is very simple. The only key word to be noticed is use, which means to connect closures and external variables. $a =function()use($b) {       }   Several functions of closures: 1 reduce the code of foreach's loop ...

Posted by pk-uk on Thu, 30 Apr 2020 17:01:59 +0200

Shell Script: find all files in a directory after a certain time

Problem description Often swim in the ocean of Linux files, often need to find all the files after a certain time. Maybe you're packing them, or maybe you're just checking. The question is, what do you do if you want to write a script find-newer and put it on the server? target With a command like this, you can fi ...

Posted by bizshop on Thu, 30 Apr 2020 09:40:04 +0200

Asynchronous message queuing API based on swoole

Explain 1. If you need to perform time-consuming operations in the Server program, such as a chat Server sending broadcast, and a Web Server sending mail. If these functions are executed directly, the current process will be blocked, resulting in slow response of the Server. Swoole provides the function of asynchronous task processing, which ca ...

Posted by strangermaster on Mon, 27 Apr 2020 16:35:09 +0200

Ainong payment express payment + payment form customs declaration demo

During the work period, the customer specifies to use this. During the actual work time, the other party has no demo, has an md5 signature that is also 1.0, and can't find the case through online search. The official website doesn't provide any related content of the document. Everything should be written according to the document provided by t ...

Posted by Sentosa on Mon, 27 Apr 2020 16:03:46 +0200

JMeter Parameter Signature - Groovy Tool Class Form

How do I sign parameters in JMeter? Last Period JMeter Parameter Signature - Groovy Script Form Using Groovy scripting, this issue continues Groovy's use of parameter signatures in JMeter -- parameter signatures are done using Groovy tool classes. This is a common situation in interface testing where one parameter of the interface is determined ...

Posted by miasma on Fri, 24 Apr 2020 04:30:03 +0200