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
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
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
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
$client = new Client("ws://echo.websocket.org/");
Posted on Tue, 14 Apr 2020 15:06:49 -0400 by h.a.visser
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';
//This is a STRING
2. Mb_strtoupper(): similar to strtoupper() function, ...
Posted on Mon, 13 Apr 2020 09:45:00 -0400 by Delaran
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
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
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
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
Details of common design patterns for PHP
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
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
#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