Profile and log directory summary

In the work, viewing configuration files and logs is an important way to locate and solve problems. In order to speed up the viewing, here are some common log directory addresses of configuration files. 1. Business log Generally, it is configured in the framework. For example, Laravel is basically in the config/logging.php file, as follows ...

Posted on Fri, 17 Apr 2020 10:08:21 -0400 by unkwntech

What is PHP-FPM

Effect PHP-FPM(PHP FastCGI Process Manager) means: PHP FastCGI Process Manager, software used to manage PHP process pools and to accept requests from web servers. PHP-FPM provides a better way to manage PHP processes, effectively controlling memory and processes, and smoothly overloading PHP configurations. (1). Why is php-fpm present fpm is ...

Posted on Thu, 16 Apr 2020 04:09:37 -0400 by lostboy

Details of Contracts and Facades of Laravel

Contracts   Contracts actually advocates interface oriented programming to achieve decoupling. And these universal interfaces have been designed for you by Laravel. These are the contracts So how does Laravel know which implementation we need to use? In the default Contracts binding of Laravel, there is such a definition in 'Illuminate/Foundati ...

Posted on Wed, 15 Apr 2020 08:51:24 -0400 by MarCn

php as the client of websocket reads the push log file in real time

First, you need to use composer to download a third-party extension to realize the websocket client of php. You can directly generate the composer.json file in the current directory composer require textalk/websocket require('vendor/autoload.php'); use WebSocket\Client; $client = new Client("ws://echo.websocket.org/"); $client->send( ...

Posted on Tue, 14 Apr 2020 15:06:49 -0400 by h.a.visser

Common string functions in PHP

String functions commonly used in PHP work 1, On the functions of string case conversion 1. strtoupper($string): converts the letters in the string $string to uppercase, and returns the converted String; $str = 'This is a string'; echo strtoupper($str); //Input results: //This is a STRING 2. Mb_strtoupper(): similar to strtoupper() function, ...

Posted on Mon, 13 Apr 2020 09:45:00 -0400 by Delaran

Using Docker to develop PHP, Laradock series 3: Mailhog

When an application has registered or subscribed users, sending mail may be one of the essential functions. In the development process, we tend to use SMTP to test the server, such as mailtrap.io. Mailtrap provides a free plan for testing a single inbox to which we can send messages, but there is a limited number of messages stored in the inbox ...

Posted on Mon, 13 Apr 2020 03:47:17 -0400 by slpctrl

Installation application and supplement of docker

Tags (space delimited): part of docker One: Overview of Docker 2: Docker Installation Three: Mirror Management IV: Container Management Five: Managing application data Six: Container network Seven: Dockerfile 8: Harbor, Enterprise Mirror Warehouse One: Overview of Docker What is 1.1 Docker 1. The most widely used open sour ...

Posted on Sun, 12 Apr 2020 13:14:34 -0400 by j007w

OSS signature Header implementation Demo (PHP)

Summary The integrated upload and download of OSS provides an SDK that can be used directly, but in practice, some user limited environments or device restrictions require the use of api to achieve upload and download. This paper takes PutObject interface as an example, and provides a demo for PHP implementation.Note: it is recommended to give ...

Posted on Sun, 12 Apr 2020 10:47:52 -0400 by jrforrester

PHP common design mode, PHP common design mode detailed, PHP detailed design mode, PHP design mode

Details of common design patterns for PHP   Singleton mode: php Exchange group: 159789818 Attribute: A singleton class can only have one instance Intra-class u construct constructor privatization to prevent new instances Intra-class u clone privatization to prevent objects from being copied Set a $instance private static property to save an in ...

Posted on Sat, 11 Apr 2020 12:55:37 -0400 by AcidDriver

docker + redis + beanstalkd + swoole to build a robust queue

The technologies used are docker + redis + beanstalkd + swoole #Download redis and beanstalkd from the warehouse docker pull redis:5.0.7 docker pull schickling/beanstalkd #View image list docker images #Running beanstalkd in the docker container and mapping to the local host port 11300 docker run --name beanstalkd -d -it -p 11300 ...

Posted on Fri, 10 Apr 2020 10:57:57 -0400 by webtailor