Chinese typesetting: better Chinese copywriting

Welcome to correct. GitHub address: https://github.com/jxlwqq/chinese-typesetting Better Chinese copywriting Unify the usage of Chinese copywriting and typesetting, reduce the communication cost between team members, and enhance the quality of the website. install Use composer to install: composer require "jxlwqq/chinese-typesetting" Use Add ...

Posted on Fri, 31 Jan 2020 04:50:02 -0800 by Technex

2018 swoole actual combat 5-asynchronous mysql

Following the last chapter 2018 swoole 4-asynchronous io reading and writing This presentation Asynchronous mysql of swoole Analog data Create a new book table in the local test database and write the simulation data CREATE TABLE `book` `id` int(11) NOT NULL AUTO_INCREMENT, `content` text,( `titlle` varchar(255) NOT NULL COM ...

Posted on Fri, 31 Jan 2020 00:22:51 -0800 by Rai_de

Find nearby network point geohash algorithm and implementation (PHP version)

Gehash has the following characteristics: First, geohash uses a string to represent the longitude and latitude coordinates.In some cases, it is not possible to apply an index on both columns at the same time (for example, previous versions of MySQL 4, the data tier of Google App Engine, etc.). With geohash, you can simply apply an index on one ...

Posted on Sat, 25 Jan 2020 08:16:57 -0800 by brainstorm

Implementing RSA 2 encryption in PHP

Because Alipay APP payment needs to encrypt the order information with the payment key, it needs a completed encryption interface. There will be some under the whole code, but there are a few points to pay attention to before the code. First of all, the php extension openssl needs to be turned on. ...

Posted on Mon, 20 Jan 2020 21:01:44 -0800 by alex.hughson

PHP member overloading and actual combat

1, Static member Application scenario: 1. If an object is only used once, is it necessary to create an object? Isn't it more convenient to treat a class as an object directly2. If multiple objects need to share some properties and methods, but they must be called by independent objects, and they can ...

Posted on Sat, 18 Jan 2020 20:21:28 -0800 by sprint10s

Simple php basic summary

Article directory php Foundation data type String function constant operator if judgement switch structure while structure (dead cycle) for cycle function array time stamp System variables File operation Ternary operator GET, POST, and REQUEST requests php Foundation data type &Common m ...

Posted on Sat, 18 Jan 2020 05:56:21 -0800 by stelthius

How do I force a child div to be 100% of the parent div's height without specifying the parent's height?

I have a website with the following structure: <div id="header"></div> <div id="main"> <div id="navigation"></div> <div id="content"></div> </div> <div id="footer"></div> Navigation is on the left and content div is on the right. ...

Posted on Fri, 17 Jan 2020 19:28:08 -0800 by aperantos

thinkphp db operation class for yii1.1

Some time ago, a project was to modify a shopping mall written in yii1.1, which was not easy to write, but it was much better than the process oriented ecshop. It was a big head to change the ecshop just before yii1.1 in which database operation took me a lot of time to find various examples for testing. For reasons that may need to be changed ...

Posted on Thu, 16 Jan 2020 08:37:26 -0800 by banacan

thinkphp6 uses jwt to generate token middleware to verify token

  jwt and tp middleware sound very tall. It took two days to read the documents and watch the video. I finally got a little understanding. I'll record it here. The following two questions need to be understood 1 what is jwt? JWT is a json based open standard (RFC 7519), which is designed as a co ...

Posted on Thu, 16 Jan 2020 02:49:23 -0800 by osiris1603

php file operation (finally, encapsulate common file functions)

Document information related API $filename="./1-file.php"; //filetype($filename):Get the type of file,Returns the type of file echo 'The file type is:',filetype($filename),"\n";//file //filesize($filename): get the size of the file, return bytes echo 'The file size is:',filesize($filename),"\n";//1214 //filectime($filen ...

Posted on Sat, 11 Jan 2020 00:44:16 -0800 by FrostedFlakes