Category:PHP

  • 2021-php interview questions – object oriented

    Time:2022-6-10

    Series of articles: 2021-php interview question “database” related knowledge points interview summary 2021-php interview questions – object oriented 1. What is object-oriented? (answers with understanding)Object oriented is an idea based on process oriented, that is to say, object oriented is to realize functions through objects, encapsulate functions into objects, and let objects realize specific details. […]

  • How to use laravel eloquent to develop infinite classification

    Time:2022-6-10

    catalogue summary Database migration Eloquent model and correlation Routing and controller methods Views and recursive subviews summary We will create a mini project to show the classification of children’s stores, with a total of 5 levels, as follows: Database migration Simple data table structure: Schema::create(‘categories’, function (Blueprint $table) { $table->bigIncrements(‘id’); $table->string(‘name’); $table->unsignedBigInteger(‘category_id’)->nullable(); $table->foreign(‘category_id’)->references(‘id’)->on(‘categories’); $table->timestamps(); }); […]

  • Analyze the use skills of five laravel dusks

    Time:2022-6-9

    catalogue 1. fill in hidden fields 2. simulate HTML geographic location 3. using XPath selectors 4. full page screenshot 5. access the browser error log 1. fill in hidden fields When testing some JS components (such as auto completion, date selector, etc.), you may need to write action simulation operations to interact with these components. […]

  • Using supervisor in laravel

    Time:2022-6-8

    1 superviosr installation sudo pip install supervisor 2 supervisor configuration //Run this command to generate a default configuration file echo_supervisord_conf > /etc/supervisord.conf //After successful generation, open and edit this file, open the comments of the last include block, and modify them as follows: [include] files = /etc/supervisor/*.conf The newly added supervisor configuration file is placed […]

  • Detailed explanation of the solution to the data boundary problem of the spoole TCP stream

    Time:2022-6-8

    catalogue 1. data transmission process 2. what is a data boundary 2.1 code demonstration 3.eof solution 3.1 open_eof_check 3.2 open_eof_split 3.3 open_ eof_ Check and open_ eof_ Split difference 4. fixed package head + package body solution 5. summary 6. expand knowledge 6.1 byte order 1. data transmission process First, the client sends the data […]

  • Laravel scheme scheduling

    Time:2022-6-7

    Starting The Scheduler Here is the only Cron entry you need to add to your server: * * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1 This Cron will call the Laravel command scheduler every minute. Then, Laravel evaluates your scheduled tasks and runs the tasks that are due. This work adoptsCC agreement, reprint […]

  • Explain the PHP framework easysoole

    Time:2022-6-7

    catalogue install function Edit the composer JSON file Finally, execute composer dumpautoload life cycle Profile description Configure operation class Add user configuration item Separation of production and development configuration Dynamic configuration Service management script File hot load install Installing using composer composer require easyswoole/easyswoole=3.xphp vendor/bin/easyswoole install Launch framework php easyswoole start Nginx forwarding server { […]

  • Kuguayun class (Tencent cloud version) v1.3.5 release, open source online school solution

    Time:2022-6-6

    v1.3.5(2021-05-20) Update content Update presentation data Optimize the installation script install sh Upgrade script upgrade Add update navigation cache to sh Writing articles and asking questions markdown editor column display Improve the browsing permission of articles and questions Optimize generic Ajax form submission Articles, questions, answers, likes authors have reminders and points rewards Add preview […]

  • Explain the API interface of laravel

    Time:2022-6-6

    It should be noted that API has its specific purpose. We should know what it does. What should be entered when accessing the API. What you should get after accessing the API. When we begin to design the API, we should pay attention to these 8 points. The follow-up development plan revolves around this. 1.restful […]

  • The most grounded set of PHP interview questions (end) (it’s not easy to summarize. I stepped on the pit and hung up a lot of interviews)

    Time:2022-6-5

    Series of articles: The most grounded set of PHP interview questions (end) (it’s not easy to summarize. I stepped on the pit and hung up a lot of interviews) The most grounded set of PHP interview questions (it’s not easy to summarize. I stepped on the pit and hung up a lot of interviews) Some […]

  • Summary of RAR decompression and reading extension package in PHP

    Time:2022-6-5

    As the extended learning of compression and decompression, the two ace compression formats RAR and zip have always been the compression terminators in the computer field. Rar compressed packets are nearly dominant in the windows system. The PHP extension we are learning today is aimed at rar compressed packets. However, the RAR extension of PHP […]

  • Calculate prime numbers from 1 to 100

    Time:2022-6-4

    What is prime Once called prime number. A positive integer greater than 1 is called a prime if it cannot be divided by other positive integers except 1 and itself. Such as 2, 3, 5, 7, 11, 13, 17 Calculate prime numbers from 1 to 100 //First, the minimum prime number is 2 //The following […]