PHP FFI Details - A new way to extend PHP

This article address: https://www.laruence.com/2020/03/11/5475.html Please indicate the source for reprinting With PHP 7.4 comes an extension that I think is very useful: PHP FFI (Foreign Function interface), which refers to a description in a PHP FFI RFC: For PHP, FFI provides a way to write PHP extensions and bindings to C li ...

Added by $SuperString on Mon, 30 Mar 2020 06:00:01 +0300

Details of php pdo object usage: connecting database and exec method

To use pdo, you need to open the pdo extension first. I have opened the pdo extension of mysql here ghostwu@dev:~$ php -m | grep pdo pdo_mysql ghostwu@dev:~$ 1. Connect to the database mysql> show create database shop \G; *************************** 1. row *************************** Database: shop Create Database: CREA ...

Added by jvanv8 on Fri, 27 Mar 2020 17:03:39 +0200

php array function

array An array in php is an ordered mapping, a type that associates values to keys, and an array can accept any number of key-value pairs separated by commas. Introduction to arrays /* * Arrays in php can be divided into: *Index Array: Subscript is a number *Associated Array: Subscript is string *Note: Arrays in php don't really distinguish ...

Added by pyc on Fri, 27 Mar 2020 08:57:14 +0200

Laravel Model Association, association query, preload use instance

Data tables are usually associated with each other, and it is usually easier to use multi table associated query, which is more convenient and simple for more complex model associated query using laravel, Chinese document , take two tables of provinces and cities as an example Preliminary preparation: First, create a PlaceController controller ...

Added by zab329 on Mon, 23 Mar 2020 11:54:51 +0200

memcached cache building

memcached cache buildingSet up the server and client so that the server can link the clientweb client: 192.168.247.161Server: 192.168.247.160 [root@localhost ~]# hostnamectl set-hostname client [root@localhost ~]# su [root@client ~]# [root@nginx ~]# hostnamectl set-hostname server [root@nginx ~]# su [root@server ~]# Set up serverDeploy libev ...

Added by zuessh on Sun, 22 Mar 2020 07:19:16 +0200

About PHP + jQuery UI drag floating layer to sort and save to database instance

The PHP + jQuery UI implements the drag floating layer sorting layout and saves the dragged floating layer position sorting results to the database instance. First, jQuery library and jquery-ui.min.js are introduced, then a drag loading image is placed, and multiple module drag layers are read from the database. Modules and orderlist are used ...

Added by Cerebral Cow on Wed, 18 Mar 2020 16:29:18 +0200

CentOS7.X install php-7.x.x

My personal website Install php Installation preparation yum install \ vim \ gcc \ gcc-c++ \ wget \ make \ re2c \ libtool \ automake \ autoconf \ curl-devel \ libpng-devel \ libxml2-devel \ libxslt-devel \ openssl-devel \ freetype-devel \ bzip2-devel \ libicu-devel \ libuuid-devel \ libmcrypt-devel \ postgresql-devel \ -y Install php cd /ro ...

Added by Nick Zaccardi on Tue, 17 Mar 2020 16:04:49 +0200

Nginx Common Classic Configuration | Reverse Proxy, HTTPS Redirection, Port Forwarding

Secondary directory mapping At present, there are more scenarios for front-end and back-end project separation, usually one port for front-end and one port for back-end. If the front end is https://example.com/index.html, the interface called is https://example.com:4433 Such a deployment can be cumbersome for small projects, but you can also ...

Added by Akenatehm on Sun, 15 Mar 2020 19:49:40 +0200

WRF input file parsing (incomplete)

Open the WRF input file, that is, the initial field file (. nc) with matlab. This paper introduces the contents of the WRF input file variables Times #time Size: 19x1 Dimensions: DateStrLen,Time Datatype: char ——>Times: time, si ...

Added by Neptunus Maris on Sat, 14 Mar 2020 11:00:27 +0200

Website front desk - login and user center

Chapter 6 website front desk - login and user center Learning objectives: Complete the user registration function Complete the user login function and master the use of JS cookies Complete the function of wechat code scanning and login Complete the nesting layout of user center and master the use of ...

Added by mdojet on Thu, 12 Mar 2020 11:42:48 +0200