Category:PHP

  • How to realize load balancing and how to implement nginx

    Time:2019-12-9

    What is nginix? Nginx is an HTTP server. It is a high-performance HTTP server / reverse proxy server and email (IMAP / POP3) proxy server developed in C language. Nginx can support 50000 concurrent links, but the consumption of CPU, memory and other resources is very low, and the operation is very stable. Users of […]

  • Realizing face recognition of Baidu in PHP

    Time:2019-12-9

    PHP access to Baidu face recognition, for your reference, the details are as follows 1. Register Baidu developer account. https://login.bce.baidu.com/?account=After successfully registering and logging in, enter the console, and find products – Artificial Intelligence – face recognition in the left navigation bar: Create an app. Get the API key and secret key of the application […]

  • Perfect solution to the problem that WordPress SAE cannot enter the background after domain name change

    Time:2019-12-9

    terms of settlement: Method 1: Modify the WP? Set? Auth? Cookie function in the file “/ WP includes / pluggable. PHP”. Search for this line of code (one line): Copy code The code is as follows: setcookie($auth_cookie_name,$auth_cookie,$expire, ADMIN_COOKIE_PATH,COOKIE_DOMAIN,$secure,true); Change the admin ﹣ cookie ﹣ path in the above code to sitecookie path. You may find […]

  • Basic use of GIT and branch switching command

    Time:2019-12-8

    Git init generate local warehouse Git status to view the status of local files. Uncommitted files are displayedRed Git add Git commit – M ‘comment information’ (one add corresponds to one commit) ——–This is a simple step to commit files to the staging area——— Note: This is usually selected at the first submission. In the […]

  • Php5.6.8 analysis and summary of common skills of connecting SQL Server 2008 R2 database

    Time:2019-12-8

    This paper introduces the common skills of php5.6.8 connecting to SQL Server 2008 R2 database. To share with you for your reference, as follows: Tools used: 1. JetBrains phpstorm (write PHP code tool) 2. SQL Server 2008 R2 (database) 3. PHP 5.6. X (x86 from Apache xampp integration) First, let’s see how many bits PHP […]

  • WordPress installation and use of flowplayer Easy Guide

    Time:2019-12-8

    This is the second in a series of easy to understand modern magic articles~ I. Introduction to flowplayerFlowplayer is a video player developed in flash on the web, which can be easily integrated into any web page. Support HTTP and streaming media transmission. The latest version is 5.1.1. The latest version uses native Video Tags […]

  • TP5 try {} catch {} exception capture cannot be solved

    Time:2019-12-7

    Problem: TP5 uses the following method to catch the thrown exception Wrong way to write: try{ …… } catch (Exception $e) { echo $e->getMessage(); } The right way to write: try{ …… } catch (\Exception $e) { echo $e->getMessage(); }  

  • Thinkphp5 framework extension redis class method example

    Time:2019-12-7

    In this paper, an example is given to show how the thinkphp5 framework extends the redis class method. To share with you for your reference, as follows: During the development, the author found that the redis class method of thinkphp5 has only a simple basic method of reading and writing cache, which is far from […]

  • Solutions to WordPress’s slow opening speed

    Time:2019-12-7

    Today, I have brought 5 example skills to help my friends at least play a little role in reducing the load of wordpress blog. Let’s share them with my friends.Example 1: load specific JS and CSS on specific pages: when you create a new page like about us on wordpress blog, you may want to […]

  • Implementation of redis message queue

    Time:2019-12-6

    Summary Redis implements message queuing in two forms: Broadcast subscription mode: Based on redis’s Pub / sub mechanism, once a client publishes a message to a key, all the clients of the subscribe will trigger an event Cluster subscription mode: Based on redis list bidirectional + atomicity + brpop In redis message queuing, when redis […]

  • Laravel framework request, response and session operation examples

    Time:2019-12-6

    This article describes the request, response and session operations of the laravel framework. To share with you for your reference, as follows: Request operation public function request(Request $request){ //1. value //echo $request->input(‘name’); //Echo $request – > input (‘sex ‘,’unknown’); /*if($request->has(‘name’)){ echo $request->input(‘name’); }else{ Echo ‘no such parameter’; }*/ //Get all parameters /*$res = $request->all(); dd($res);*/ […]

  • Summary of WordPress’s methods of removing index.php and category under IIS 6.0

    Time:2019-12-6

    WordPress version: 3.3.1 I. remove index.php 1. Write a 404.php file and upload it to the blog root directory (the same directory as WordPress’s index.php). The contents of the document are as follows:; Copy code The code is as follows: <?php $qs = $_SERVER[‘QUERY_STRING’]; $pos = strrpos($qs, ‘://’); $pos = strpos($qs, ‘/’, $pos + 4); […]