PHP uses yansongda/pay to pay Alipay and WeChat
Pay
This document is v2.x version, if you want to find v1.x version document, Click https://github.com/yansongda/pay/tree/v1.x
Note: v1.x is incompatible with v2.x version
After developing Alipay and WeChat Payments several times, it is natural to have a feeling of disgust and inertia. I want to find the wheel related on the internet, but I ...
Posted by MarcB on Wed, 18 Dec 2019 19:59:07 -0800
Bootstrap Table regularly refresh fixed scroll bar position
Scenario: a table with a large content refreshes the data every other period of time. The user suddenly refreshes when viewing the data. As the scroll bar pops to the top after refreshing, it is difficult for the customer to find the content they just saw. How to solve this problem?
Idea: first obtain the position of the scroll bar, and then s ...
Posted by compguru910 on Wed, 18 Dec 2019 09:36:24 -0800
On PHP Namespace
End of closure[ see ], explore namespace again.
For namespaces, the official documentation has been detailed[ see ], I have done some practice and summary here.
One of the most explicit purposes of namespace is to solve the problem of duplicate names. Two functions or classes are not allowed to have the same name in PHP, otherwise a fatal err ...
Posted by Hikari on Wed, 18 Dec 2019 02:03:54 -0800
LNMP environment building (PHP7.2.25)
catalog
preparation
Install wget
Install net tools
Install vim
Configure display line number
Turn off firewall
Install Nginx
Installation dependency
Compile and install Nginx
Configure environment variables
Systemd management
Instal ...
Posted by cheekychop on Wed, 18 Dec 2019 00:06:50 -0800
HTML individual instance
1. Use HTML for the first time
<title>First use HTML</title>
</head>
<body>
hello,HTML
2. Text processing
<title>text processing </title>
</head>
<body>
<!-- Title -->
<h1>First level title</h1>
<h2>Secondary title</h2>
<h3>Third le ...
Posted by jasonX on Tue, 17 Dec 2019 14:51:00 -0800
Deployment of zabbix monitoring service
zabbix monitoring service
zabbix: it is an enterprise level open source solution based on WEB interface that provides distributed system monitoring and network monitoring functions. It can monitor various network parameters to ensure the safe operation of the server system, and provide flexible notification mechanism to enabl ...
Posted by loveitandhateit on Tue, 17 Dec 2019 10:19:56 -0800
HDU3790 shortest path problem (dijkstra + thinking)
Title Link: http://acm.hdu.edu.cn/showproblem.php?pid=3790
This problem is to choose the one that costs the least under the condition of the shortest path, so it needs to update the cost when relaxing. If three points are connected by a line, the first point is also connected with the third point. Because dij always chooses th ...
Posted by programming_passion on Tue, 17 Dec 2019 09:32:37 -0800
Calculate the distance between two longitude points? (Haversine formula)
How to calculate the distance between two points specified by longitude and latitude?
For clarity, I want the distance in kilometers; these points use the WGS84 system, and I want to know the relative accuracy of the available methods.
#1st floor
This is a simple PHP function that gives a very reasonable approximation (error range is ...
Posted by MFHJoe on Tue, 17 Dec 2019 01:56:12 -0800
Docker+Jenkins build a multi version php environment
In recent days, we have just set up a small project server, which uses the combination of docker + (jenkins, nginx, PHP FPM, mysql, redis). Let's summarize today.
Docker has been out for a long time. Even the k8s high-end gadget is very "popular". To be honest, this is the first time I use docker in a production environment.
Using d ...
Posted by satyricon on Mon, 16 Dec 2019 23:01:24 -0800
PHP implementation of Domain Driven Design - domain events
Chapter VI field events
Software events are things of interest to other components of the system. PHP programmers generally do not use events in their work, because this is not a feature of the language. However, it is now more common for new frameworks and libraries to adopt them to provide a new way to decouple, reuse, and speed up code.
Doma ...
Posted by xionfoo on Sun, 15 Dec 2019 14:26:10 -0800