Tag:php

  • Share a free and open source online document management plug-in

    Time:2020-1-18

    Online document An open source internal document management system based on rageframe At present, it mainly includes the following functions Markdown edit Document management Series of documents Document IP address restricted access Document history Document difference comparison Document historical data restore Function snapshot [home page] [details] [editor] [historical version + difference comparison] install 1. Install […]

  • The implementation of Ajax upload user’s image in laravel project

    Time:2020-1-18

    In the process of writing a web program, we often encounter a classic scene of file upload: upload a picture. Based on the pursuit of the best user experience, write the followingAjaxUpload your avatar. 1. Configure routing At laravelroutes.phpSet route in: Route::get(‘/avatar/upload’,’[email protected]’); Route::post(‘/avatar/upload’,’[email protected]’); 2. Configure the controller stayUsersController.phpAdd correspondingavatarandavatarUploadThe former is used to render the […]

  • New features of mix PHP V2: CO program and timer

    Time:2020-1-18

    Association Mix PHP V2 is based on the PHP stream hook collaboration technology development of swoole 4. The usage of collaboration is almost the same as that of golang, including the framework encapsulated collaboration pool, connection pool and Command-line processing, which refer to the system library style of golang. In addition to the lack of […]

  • An example of sorting algorithm for two-dimensional array based on specified fields in PHP

    Time:2020-1-18

    In this paper, an example is given to illustrate how to implement the two-dimensional array sorting algorithm according to the specified fields in PHP. To share with you for your reference, as follows: Problems encountered:Use two arrays in PHParray_merge()After the function is merged, you want to sort the new array according to the ‘post u […]

  • Websocket protocol

    Time:2020-1-17

    Reference articles Websocket RFC GitHub Chinese Translation Websocket RFC document Implementation of workerman websocket protocol Protocol composition The protocol consists of an open handshake, followed by a basic message framing, layered TCP Problems solved Based on the browser mechanism, the two-way communication between client and server is realized Protocol overview From client handshake GET /chat […]

  • Build PHP development environment with win10 docker toolbox

    Time:2020-1-17

    Download mirroring docker pull mysql:5.7 docker pull php:7.2-fpm docker pull nginx docker pull redis:3.2 Set up shared files Host create directory E:\wnmp\mysql57\conf E:\wnmp\mysql57\log E:\wnmp\php72\conf E:\wnmp\php72\conf E:\wnmp\nginx\conf E:\wnmp\nginx\conf E:\wnmp\www VMware setting up file sharing PicturedSetting is completed and executed in docker QuickStart terminaldocker-machine restart default Install Mysql docker run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root –name mysql57 […]

  • Laravel 5.1 — get user’s login status, simple application of event, monitoring and Middleware

    Time:2020-1-17

    There are many aspects of events, such as logging in, buying goods, searching, viewing articles, and so on. After the listener listens to the event, it performs some operations.LaravelThe observer mode is used to implement this monitoring mechanism. Now we will explain an event through a user login, monitor an event and trigger the whole […]

  • Swoole process structure

    Time:2020-1-17

    1、 Basic knowledge of process What is a process? The so-called process is actually a running program in the operating system. We run a PHP file through PHP in a terminal, which is equivalent to creating a process. This process will reside in the system, apply for its own memory space system resources and run […]

  • Full Permutation of PHP implementation strings

    Time:2020-1-17

    Enter a string and print all the permutations of the characters in the string in dictionary order. For example, if you input the string a B C, all the strings ABC, a C B, BAC, B C A, cab and CBA that can be arranged by the characters a, B and C will be printed […]

  • Wechat service provider account splitting function

    Time:2020-1-16

    Realization of service dimension function1. Opening the service provider’s dimension function2. Add sub merchant3. To start Sub Ledger, you need to add Sub Ledger users first Note: 1. Add a profit_sharing =’y ‘when paying 2. The signature type of the signature and request parameters is hmac-sha256 3. Certificate required *Service provider account splitting function * […]

  • Mongodb development series – the impact of replica sets on program development

    Time:2020-1-16

    This article mainly explains the impact of replica set architecture on program development from the following aspects The author divides the application development based on mongodb into two stages: software operation and maintenance and software development This article will focus on the practical experience sharing in the later stage Understanding replica set and master-slave structure […]

  • Vue Apache reverse proxy Ajax cross domain

    Time:2020-1-16

    Team work, do the foreground alone, sometimes cooperate with the background students when testing the code. He configures the background and updates it to the server. If I also upload it to the server for testing, it’s obviously too tired, and there will be cross domain problems in the local direct request. I think that […]