haproxy for dynamic and static separation and load balancing of discuz Forum

I. install httpd on cs2, cs3 and cs4 [root@cs2 ~]# yum install httpd [root@cs3 ~]# yum install httpd [root@cs4 ~]# yum install httpd 2. Install php and php MySQL on cs3 and cs4 [root@cs3 ~]# yum install php [root@cs3 ~]# yum install php-mysql [root@cs4 ~]# yum install php [root@cs4 ~]# yum install php-mysql 3. Install mysql on cs5 [root@cs ...

Posted on Thu, 05 Dec 2019 10:23:35 -0800 by gijs

Python crawler tutorial 8-100 hummingbird Web picture crawling 3

Wordy The capacity of the previous few days is quite large. Today I write a relatively simple one. It's hummingbird. I still use aiohttp. I hope you like it Crawling the page https://tu.fengniao.com/15/ this tutorial is still based on the purpose of learning. Why choose hummingbirds? There's no way. I chose them blindly. After a familiar ope ...

Posted on Wed, 04 Dec 2019 23:33:38 -0800 by dcole

Wechat applet search function! Attachment: applet front end + PHP back end

Development needs Wechat applets are very popular and easy to learn, but for beginners it's still a bit of a headache. Next, I'll share the idea of searching for applets. Technological process 1. Form (input box, submit button, submitted name value)2. Receive form data (js gets the value of form name=keyword)3. Send a request to the back end of ...

Posted on Wed, 04 Dec 2019 18:39:30 -0800 by nathanmaxsonadil

Implement a simple di container

I have seen many frameworks before, such as laravel, thinkphp, yii, etc. Basically, containers are used. For me, although I understand how laravel is written, if I don't try it, I still don't think it will be. The following code is a simple container I implemented. It's not very good in many places, but it should be enough. <?php class Cont ...

Posted on Wed, 04 Dec 2019 14:52:31 -0800 by RaheimSG

A review of PHP6 basic syntax (with Demo attached)

Reference materials (mooc.com) 1. PHP code needs to be written in "<?" and "? >"; <?php Expression ?> Just as writing a JavaScript scripting language needs to be written between < script > < script > tags, The PHP code written in the page is written between the < PHP? > tags, but ...

Posted on Wed, 04 Dec 2019 08:53:59 -0800 by rofl90

Get some information under a tag of SegmentFault

Preface At present, segment fault has not opened API. In 2017, Gaoyang dada said Planned Even though I didn't use SegmentFault In PHP, I randomly wrote a code to obtain the information under a certain tag, which has no technical content and is used for timing acquisition The purpose is to help solve problems if they can be solved, or to report ...

Posted on Wed, 04 Dec 2019 08:12:52 -0800 by jcanker

Example of triggering a manual business process code

Summary Manual task refers to the task submitted to the scheduling system after manual task is selected as the scheduling type when a new task is created. After the manual task is submitted to the scheduling system, it will not run automatically, only when triggered manually. This article will introduce how to use Java SDK or PHP Rest API to tr ...

Posted on Wed, 04 Dec 2019 01:27:58 -0800 by kusal

Upload json file in PHP

HTTP: a hypertext transport protocol , is a standard protocol for computer to computer communication, now it is generally the communication between end and end.1. Agreed content Request / response message format Request method GET/POST Response status 200 / 404 / 302 / 304 Preset request / response headers The header function in PHP is used t ...

Posted on Tue, 03 Dec 2019 18:22:56 -0800 by lilwing

nginx secondary directory

Requirement: use 80 port deployment api+web + of a server to receive GET request of wechat interface configuration information Front end development uses JS-SDK to invoke the function of Tencent map and use it in public address.At the time of development, there is only one Tencent cloud server. It needs to configure the interface configuration ...

Posted on Mon, 02 Dec 2019 23:28:45 -0800 by Dutch MaFia-boy

Facade Call and Use in TP

What is a Facade, currently considered a class that facilitates the static invocation of the corresponding method to an existing class (which does not define a static method).The implementation of the specific Facade is as follows:First look at the core files:\thinkphp\base.php`//Register static proxy for core classFacade::bind([ facade\App::cl ...

Posted on Mon, 02 Dec 2019 19:03:14 -0800 by samohtwerdna