thinkphp5 taglib custom tag tutorial

Learn to write for a while, finally done, by the way share!taglib is the custom tag function of tp framework. If you have used cms, you must have seen something similar:   {dede:arclist typeid='' row='' col='' titlelen='' infolen='' orderby='' keyword=''} ssss... {/dede:arclist}   Or:   {pc:content action="lists" cache="3600" num="20" page= ...

Added by cobaswosa on Sat, 04 Apr 2020 22:21:17 +0300

Executing SQL statements with PDO

There are two methods to execute SQL statements in PDO:    1. exec() is used to process statements that do not return SQL results, such as insert update delete create, etc., but it will return the number of affected rows If you are executing an insert statement, you can use the lastinsertid() method to get t ...

Added by flOid on Sat, 04 Apr 2020 11:29:40 +0300

Develop an app with vue (4, a long-awaited article) H5 live platform login registration (1)

My last article on vue is a little bit too long away from this one. It's finally finished recently. Because I always want to write something with some achievements, rather than just a tutorial. Combined with the recent experience in the project and a little creativity. First of all, what is this! H5 live platform! It's not a title. I've dev ...

Added by xangelo on Fri, 03 Apr 2020 22:27:59 +0300

The whole process of building php7 and nginx running environment with docker

Since we used to use docker image to enter the container and use yum to install nginx or php, we found that the whole image is larger and faster by 2G. Large documents will affect the environmental shift value, and there is no technical content. Today, I found a sub environment installation on the Internet to separate nginx and php into two ima ...

Added by luxe on Fri, 03 Apr 2020 12:00:19 +0300

linux introduction series 20 -- LNMP architecture practice of Web Services

As the last article in this introductory series, we will demonstrate how to build a LNMP environment to build a personal blog site in the CentOS7 environment. The common ways to build a website are LAMP, LNMP, IIS, Nginx, Tomcat, etc. This paper demonstrates the more popular way to build a dynamic WEB site based on LNMP. As mentioned in "L ...

Added by naturalbeauty7 on Thu, 02 Apr 2020 02:03:03 +0300

Various writing methods of wx.request()

post request, parameter is key value pair format wx.request({ url: 'http://192.168.1.103/yiji/skillList.php', method: 'POST', data:'pageSize=1&pageNum=10', //Parameter is key value pair string header: { //Set the parameter content type to x-www-form-urlencoded 'conten ...

Added by whisher06 on Wed, 01 Apr 2020 13:21:28 +0300

easywechat -- use in thinkPHP5

1. installation Version 1.1 v-4.0 requires PHP version above 7.0 1.2 run the following command in the project directory If composer is not installed, install composer first - > http://docs.phpcomposer.com/00-intro.html Under windows environment, if openssl extension is missing is reported, modify php.ini file and open extension=php_openssl. ...

Added by QuizToon on Tue, 31 Mar 2020 23:33:36 +0300

Vue obtains router dynamically from server

Preparatory work Provide interface Rewrite route Provide interface laravel provides the interface. It's in minutes, isn't it api.php Route::group(['prefix'=>'admin','middleware'=>'format'], function (){ Route::get('routes','Manager\RouterController@getRouter'); }); Then write a getRouter method like RouterController pu ...

Added by Ayon on Tue, 31 Mar 2020 19:29:41 +0300

Practice the real knowledge - Scratch integrated ip agent (take Abu cloud as an example)

I. Preface There is a project that needs to crawl the Securities Association, and the other party has ip shielding. So I need to realize the ip automatic switch in the scratch to complete the crawling task. Before that, I have used the third-party library, namely, scrapy proxys plus the proxy api interface of sesame ip. Maybe the previous code ...

Added by Greaser9780 on Tue, 31 Mar 2020 17:23:54 +0300

Jquay review summary

   1 optional combination of selectors, mixed use <span style="font-size:14px;color:#006600;"></span>   // Multiple selectors are separated by spaces or specified symbols to match the elements represented by the last selector that has a specified relationship with the former $("#uid span"); // Select al ...

Added by ryanlwh on Tue, 31 Mar 2020 16:12:33 +0300