Analysis of configuration file of Kodex Explorer open source private cloud program

config/setting_user.php append content (all of the following, be careful not to use Chinese quotation marks, double quotation marks and semicolons) //[specify multiple languages and keep Chinese only] $GLOBALS['config']['settings']['language'] = 'zh-CN'; //[automatically create a new directory when creating a user-defined group] $GLOBALS['conf ...

Posted by paulareno on Wed, 04 Dec 2019 20:42:40 -0800

[learn ES series] - 4.ElasticSearch basic interaction basic query and advanced query

Basic query POST http://127.0.0.1:9200/book/_search 1. Simple query { "query":{ "match_all":{} } } 2. Condition query { "query":{ "match":{ "title":"Entry to mastery" } }, "from":1, "size":5, "sort":{ "publish_date":{ "order":"asc" } } } 3. ...

Posted by cfemocha on Wed, 04 Dec 2019 10:57:37 -0800

Another OneDrive command line client

Another OneDrive command line client Be based on Laravel-Zero , and made a lot of changes. This project references onedrivecmd , but the language is based on PHP. After all, PHP is the best language in the world. OLAINDEX-CMD is the command line version of OLAINDEX Github Project address: https://github.com/WangNingkai/OLAINDEX-CMD Characteri ...

Posted by JD* on Wed, 04 Dec 2019 10:25:21 -0800

laravel5 integrated alipay Alipay scan code payment process (Laravel payment solution)

First of all, we will discuss how to use Alipay to pay in Laravel applications. For this, there are many related packages on GitHub, among which the two most popular packages are Omnipay For Laravel 5 & Lumen and Laravel AliPay. Laravel Alipay is used to illustrate the case: Preparation: Alipay account / ant gold service open platform accou ...

Posted by Rollo Tamasi on Wed, 04 Dec 2019 05:01:39 -0800

zabbix Chinese character scrambling problem, three solutions summary. There's always a way for you

Method 1: replace font Modify web front end VIM of zabbix / www / HTML / zabbix / include / definitions.inc.phpReplace DejaVuSans with simkai in two places define('ZBX_FONT_NAME', 'DejaVuSans'); define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); Replace DejaVuSans with simkai define('ZBX_FONT_NAME', 'simkai'); define('ZBX_GRAPH_FONT_NAME', 'simkai ...

Posted by freshclearh2o on Wed, 04 Dec 2019 02:54:11 -0800

PHP dependency injection

How to call a method in a class: $class = new class();$class->fun() Dependency injection pattern is used to reduce the coupling between programs There are three modes of dependency injection: setter method injection Focus on setter method injection combined with ArrayAccess /** * Class Di * @property People */ class Di implements ArrayAc ...

Posted by Rebel7284 on Tue, 03 Dec 2019 23:09:05 -0800

AJAX asynchronous request

Native ajax operations JavaScript asynchronous GET request // Step 1: create an ajax object //Determine the browser type of the user and decide how to use ajax objects if (typeof ActiveXObject != "undefined") { var version = [ 'Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.5.0', 'Msxml2.XMLHTTP.3.0 ...

Posted by GM on Tue, 03 Dec 2019 22:03:45 -0800

How to use Facade

What is the Facade? At present, it is a class that is used to facilitate the static method call of the original class (undefined static method).The specific implementation of Facade is as follows:First look at the core document:\thinkphp\base.php`//Register static proxy of core classFacade::bind([ facade\App::class => App::class, facade ...

Posted by ArizonaJohn on Tue, 03 Dec 2019 20:52:43 -0800

PHP 2D array sorting keeps the key name unchanged

To sort the key names assigned to a two-dimensional array, the first thing you think about is the array? Multisort function. I wrote about the use of array? Multisort before An articleThere is not much nonsense. Let's take an example: <?php $data = array( 1001 => array( 'age' => 22, 'name' => 'Jiu Mo Zhi' ), ...

Posted by wanda46 on Tue, 03 Dec 2019 10:28:03 -0800

Implementation of custom exception handling in CodeIgniter 3.0 + framework

background The core code of ci3.0 framework automatically implements exceptions and the corresponding pages and methods thrown, which is not suitable for some personalized requirements, especially for the application of interface types. Therefore, it is necessary to change the handling of exceptions and 404 and other related exceptions without ...

Posted by mainewoods on Tue, 03 Dec 2019 06:09:04 -0800