Create PHP RSA2 signature algorithm
What is RSA2?RSA2 is a new signature algorithm supporting SHA256WithRSA based on the original SHA1WithRSA signature algorithm.This algorithm has stronger security capability than SHA1WithRSA.For the security of your application, it is highly recommended to use the signature algorithm of SHA256WithRSA.
Development platform algorithm nam ...
Added by icicleman on Thu, 21 Nov 2019 18:22:31 +0200
PHP extended development of online chat communication system
To use Swoole in ThinkPHP, you need to install the think Swoole composer package, provided that the system has installed the Swoole PECL extension
To install think swoole, execute the composer command in the project root directory of tp5:
composer require topthink/think-swoole
If you don't say much, go straight to the code:
To create a WebSocke ...
Added by reddrum on Wed, 20 Nov 2019 16:13:01 +0200
nginx web page optimization
Nginx web page optimization (1)
Configure Nginx hidden version number
In the production environment, the version number of Nginx needs to be hidden to avoid the leakage of security vulnerabilities
View method
Use fiddler tool to view Nginx version number in Windows client
Use "curl-i web address" command to view in CentOS system ...
Added by Cleibe on Wed, 20 Nov 2019 13:12:56 +0200
Detailed operation steps of PHP queue
Queue is a kind of special linear table. It only allows deletion at the front end of the table, which can be called front, and insertion at the back end of the table, which can be called rear. Like stack, queue is a linear table with limited operation. The difference between queue and stack is that queue follows the principle of "first in, ...
Added by Chalks on Tue, 19 Nov 2019 11:40:47 +0200
PHP reading pictures in Excel
Today, I received a demand to read pictures from Excel. I searched some data on the Internet and basically realized my own demand. However, due to the long-term code found, I can't directly transplant it into my own project, so I need to make some changes.
Here we introduce the functions of reading pictures in Excel by using phpspreadsheet and ...
Added by Spudgun on Mon, 18 Nov 2019 21:53:53 +0200
Reflection mechanism
brief introduction
PHP Reflection API is a new function of PHP 5. It is used to export or extract detailed information about classes, methods, properties, parameters, etc., including comments.
class Reflection { }
interface Reflector { }
class ReflectionException extends Exception { }
class ReflectionFunction implements Reflector { }
class Ref ...
Added by myfafa on Mon, 18 Nov 2019 20:35:57 +0200
PHP implementation of wechat enterprise payment to personal change steps
Wechat payment enterprise payment to change function is widely used, such as wechat red packet reward, business settlement, etc. Through enterprise payment to individuals, payment funds will directly enter users' wechat change.
I. opening conditions
Payment fund
The enterprise pays the change fund with the balance fund of the merchant numbe ...
Added by XzorZ on Mon, 18 Nov 2019 17:08:45 +0200
Collect 15 proxy IP websites to create a free proxy IP pool
Collected sites:
Free proxy IP http://ip.yqe.com/ipproxy.htm66 free agent network http://www.66ip.cn/89 free agent http://www.89ip.cn/Worry free agent http://www.data5u.com/Cloud agent http://www.ip3366.net/Fast agent https://www.kuaidaili.com/free/Fast exclusive agent http://www.superfastip.com/HTTP proxy IP https://www.xicidaili.com/wt/Xiaosh ...
Added by webdesco on Sun, 17 Nov 2019 22:05:15 +0200
Delay binding of [modernPHP topic] class (late binding)
Call with static:: to perform binding operation at the time of running;
There is a method in the parent class that is delayed binding. When the child class:: calls this method, it returns to the calling child class and starts to look up;
example1:
class Human {
public static function whoami() {
echo 'From parent whoami In executi ...
Added by vladj on Sat, 16 Nov 2019 16:47:11 +0200
Complete pseudo static rules of AMH host panel
Compared with lightweight application servers or virtual hosts, Alibaba cloud ECS cloud servers need higher technical capabilities. Users can use AMH panel or pagoda and other panels to make Web projects simpler. Yuntun store shares the complete pseudo-static rules of AMH host panel:
Complete pseudo static rules of AMH host panel
Pseudo static ...
Added by my8by10 on Fri, 15 Nov 2019 19:43:47 +0200