Utilize php websocket to implement message push or timely communication function of applet wss
Applet does not have message pushing function, to achieve this, you can use php's websocket
Configure the server.
1. Upload the web-msg-sender directory to the server (download address https://www.workerman.net/web-sender) 2. Modify the start_io.php file to modify the certificate path (nginx certificate)
$sender_io = new SocketIO(2120);
Mod ...
Added by n8r0x on Mon, 02 Dec 2019 11:36:22 +0200
Code use example of RDS trigger eventFormat as protobuf
Preface
Function calculation A new trigger, RDS trigger, has been released, which indicates that a new member has been added to the event source of function calculation-- Alibaba cloud Relational Database Service (RDS) According to Official documents As a supplement, this article explains the code example when eventFormat is protobuf.
protobuf ...
Added by davieboy on Mon, 02 Dec 2019 07:59:25 +0200
Applet development: pull up to load data
Introducer
The requirement is to pull up and load data, which is actually to obtain paging data. The background is the normal ajax request paging data. The small program part is a little more complex. I checked some data, but I couldn't find the link to the data, so I can't put it for reference.
Applet page
When it comes to data loops, here's a ...
Added by sharyn on Sun, 01 Dec 2019 13:45:43 +0200
PHP digital amount to capitalized amount
An amount conversion function used in CRM in the early years. Today, take it out of the old project and record it. There are many functional methods for amount conversion, which are very good. But this is a conversion function that Cui wrote when he was working. It's more or less memorable. If you have any questions, please point out that Cui w ...
Added by stressedsue on Sun, 01 Dec 2019 02:28:31 +0200
Cache MEMCACHE php calls
In the project, when large amount of access is involved, reasonable use of cache can reduce the pressure of database and improve the user experience. That is, under the premise of non real-time demand, for a short period of time (several seconds), the data used to display is obtained from the cache, instead of directly reading the database, whi ...
Added by errtu on Sat, 30 Nov 2019 22:00:41 +0200
Deploying LAMP static and dynamic separation and deploying Discuz Forums
adopt LAMP Platform Deployment and Application The LAMP platform can already be deployed to meet client requests, but since these components are installed on one server, problems can paralyze the LAMP platform.In practice, it is not possible to deploy all LAMP platforms on the same server, which requires the use of LAMP dynamic and static sepa ...
Added by Swede78 on Thu, 28 Nov 2019 08:12:29 +0200
Using brupsuite and python for password explosion
Using brupsuite and python for password explosion
Using burpsuite tool to do dvwa brute force cracking experiment
low
medium
high
Using python password to explode high
An article on water...
Using burpsuite tool to do dvwa brute force cracking experiment
low
First set the browser agent, and then configure the burpsu ...
Added by deezin on Thu, 28 Nov 2019 00:22:11 +0200
Nginx -- rewrite application example
Application example 1. Domain name based jump
Now the old domain name www.old.com of the company needs to be replaced by the new domain name www.new.com, but the old domain name can not be abolished, and it needs to jump to the new domain name, and the later parameters remain unchanged.
1. Install Nginx service
[root @ localhost ~] ා RPM - ...
Added by Steffen on Wed, 27 Nov 2019 07:23:18 +0200
How to extract some class libraries from CodeIgniter framework for problem tracking
background
Due to various reasons, there is no access to the complete call chain trace (┬). However, when we call each end interface through curl of php, we will request multiple times. So is there a way to capture these curl requests without embedding business code. Obviously, ci has basic hook operations. We can choose to send the collected d ...
Added by ridiculous on Sun, 24 Nov 2019 21:55:48 +0200
SWOLE-based Microsoft Scavenger Login
With the popularity of WeChat, the scanner login method is more and more used by current applications.Because it doesn't need to remember the password, it's easy to log in as long as there's a micro-signal.WeChat's open platform already has the ability to support scanner login, but most people still use the public platform, so scanner login ca ...
Added by cspgsl on Sat, 23 Nov 2019 11:56:07 +0200