Java ip address query, according to the ip interface to obtain the province, city, zip code, operator, etc

In the morning, the project manager said that it is necessary to add a user ip home location query function, and then search the Internet for half a day, and work out a relatively simple method to return address json data through the interface Baidu interface, Sina interface, Taobao ip interface is used here Get IP location through Taobao IP ad ...

Posted by aaadispatch on Tue, 05 May 2020 04:19:22 -0700

Exporting excel table with php header function

In addition to exporting tables with PHPExcel, another simple table import method that does not need to import class files is recommended: header() exports excel tables. The steps of exporting the table are encapsulated into a method for reuse. The code is as follows: 1 /** 2 * Export data to excel 3 *@param $data A two-dimensional arr ...

Posted by Valera on Mon, 04 May 2020 23:51:50 -0700

Binary search method of java learning notes

java binary search method I saw a binary search method of php when I was browsing the code cloud tonight. I was familiar with the word. (I learned it when I was learning php, but I didn't use it in my work, and I was confused when I was in school, and I forgot it slowly). I clicked in, wrote it in java, and used recursion. Personal understandin ...

Posted by ognotongo on Mon, 04 May 2020 22:05:08 -0700

php wechat app payment

Scenario introduction It is applicable for merchants to integrate wechat payment function in mobile APP. When the merchant APP calls the SDK provided by wechat to call the wechat payment module, the merchant APP will jump to wechat to complete the payment, then jump back to the merchant APP after the payment, and fina ...

Posted by vince251 on Mon, 04 May 2020 21:35:33 -0700

Setting up Snort+BASE intrusion detection system on Linux

Configuring the experimental environment Because my computer does not have enough storage space to bear the cost of installing a virtual machine, I applied for a cloud server on Ali Cloud for this experiment. The server configuration is as follows: 1 Core - 2GB Memory - 40GB System Disk Operating System: Ubuntu 18.04 Modify Ubuntu So ...

Posted by alexville on Mon, 04 May 2020 18:26:27 -0700

One click deployment docker CE container lnmp running wordpress

Preface During this period of time, I concentrated on studying docker, wanted to write something out, and finally wrote a wordpress running in container. I packed the image and script, and hung them on my server. If you have time, you can download them to play. docker I put the packed files on the server. The downlo ...

Posted by mrdonrule on Mon, 04 May 2020 18:24:35 -0700

Download multiple files by reading the address in excel in PHP

PHP file download can be divided into single file and multi file. If it is a single file writing method, it can be realized, but if I want to download multiple files in a circular way, my experiment is not successful. First, download the single file as follows: 1 function downfile($fileurl) { 2 $filenameexplode=explode('/',$fileurl ...

Posted by reneeshtk on Mon, 04 May 2020 18:04:41 -0700

Science and technology enterprise website (7) - login module day after tomorrow

1. Administrator authority control technology Difficulty: how to prevent users from logging into the background management interface over the form Solution: in order to show the feasibility of crossing the form, the author intentionally writes the SESSION variable to the controller in the website program, so that any user can log in ...

Posted by spectsteve7 on Mon, 04 May 2020 15:12:16 -0700

linux Installation php7 tutorial -- installing web server 5 in linux Environment

linux starts to install web server 1 from 0linux connects to the Internet -- linux installs web server 2Installing gcc -- linux installing web server 3 linux install mysql5.6 -- linux install web server 3 After php7.1, mcrypt series functions are not supported, Considering that many of my friends used to use mcrypt series of encryptio ...

Posted by siesmith on Mon, 04 May 2020 15:06:02 -0700

Nginx multisite configuration

1, Create site profile 1. Create the conf.d folder and configuration file in the nginx conf directory, assuming the site is www.a.com $ pwd /usr/local/nginx/conf $ sudo mkdir conf.d $ sudo vim conf.d/www.a.com.conf #New site profile 2. Write the following content into the www.a.com.conf file, which can be mod ...

Posted by frontlines on Mon, 04 May 2020 13:33:59 -0700