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

The detailed steps of implementing queue in php

What is a queue? Queue is a kind of special linear table. It only allows deletion at the front end of the table, which can be called front, and insertion at the back end of the table, which can be called rear. Like stack, queue is a linear table with limited operation. The difference between queue and stack is that queue follows the principle ...

Posted on Thu, 09 Jan 2020 21:57:13 -0800 by irishprogrammin

1.9 NGINX-HTTP configuration optimization - reverse generation of FastCGI (NGINX+PHP)

1.9 HTTP configuration optimization - reverse generation of FastCGI (NGINX+PHP) As a WEB server, NGINX only has the ability to parse static pages, and the ability to parse dynamic pages can only be realized with the help of external programs (PHP, Tomcat, etc.). PHP is a PHP parsing platform for running scripts written i ...

Posted on Mon, 06 Jan 2020 16:24:53 -0800 by stereo

Ubuntu 16.04 install redis

Install redis apt-get installl redis-server Install PHP redis apt-get installl php-redis Check redis process ps -aux|grep redis Accessing redis basic operations from the command line root@ubuntu16:~# redis-cli # View all key lists 127.0.0.1:6319>keys * (empty list or set) # Add a record key1 127.0.0.1:6379> set key1 "hello w ...

Posted on Mon, 06 Jan 2020 06:48:33 -0800 by xyn

PHP+swoole to realize the function of chatting and mass sending

This article mainly introduces PHP+swoole to realize the function of chatting and mass sending. I hope it can be helpful for you if you are interested in it. php code: $serv = new swoole_websocket_server("127.0.0.1",3999); //Basic settings of service $serv->set(array( 'worker_num' => 2, 'reactor_num'=>8, 'task_worker_num'=>1, ...

Posted on Mon, 06 Jan 2020 03:35:49 -0800 by kaitan

(8) PHP dynamic expansion module installation

PHP dynamic expansion module installation Now our PHP has been installed. At this time, we found that there is a lack of a module. We can't recompile PHP. So this article mainly discusses how to install PHP module with dynamic expansion module See which modules are loaded in php /usr/local/php/bin/php -m Install a redis extension module of p ...

Posted on Sun, 05 Jan 2020 18:56:38 -0800 by jawinn