(SOS)centos7, nginx cannot parse php file
I. problem description
When accessing the *. PHP file, the content of the file is not displayed, but the file to be accessed is downloaded directly, such as index.php. But it's normal to visit index.html. After reading all the posts on the Internet that have encountered this problem, we still haven't found a solution, so we po ...
Posted by bbaassiri on Tue, 10 Dec 2019 11:46:50 -0800
Online Dictionary (no interface)
Implementation ideas:
The definition of the dictionary is obtained from ICIBA server, so you need to obtain an identity key first. The obtaining methods are as follows: ①. Open ICIBA website: ICIBA (2) select ICIBA to check the word, and after submitting the information, obtain an identity key in the email
Use openural to ca ...
Posted by zenon on Tue, 10 Dec 2019 03:00:25 -0800
RabbitMQ+PHP demonstration example
Create rabbit_consumer.php as a consumer
<?php
//configuration information
$conn_args = array(
'host' => '127.0.0.1',
'port' => '5672',
'login' => 'admin',
'password' => 'admin',
'vhost'=>'/'
);
$e_name = 'e_linvo'; //Switch name
$q_name = 'q_linvo'; //Team name
$k_route = 'key_1 ...
Posted by rallan on Mon, 09 Dec 2019 19:52:35 -0800
PHP Implementation of Domain-Driven Design - Value Object
Value object
By using the self keyword, we do not use value objects as basic building blocks for domain-driven design, and they are used in code to model common language concepts.Value objects are not just things measured, quantified or described in the field.Value objects can be thought of as small and simple objects - such as money or date ra ...
Posted by iShaun on Mon, 09 Dec 2019 19:39:24 -0800
Try developing an online chat application with workerman
Chat is a common feature, and Workerman is an open source, high performance, asynchronous PHP socket instant messaging framework.
What is Workerman?
Workerman is an open source, high performance, asynchronous PHP socket instant messaging framework.Supports high concurrency and stability, and is widely used in mobile app, mobile communication, ...
Posted by pdpullmn612 on Mon, 09 Dec 2019 15:02:51 -0800
Wechat direct download APP solution
With the increasing number of wechat users, there are 108.25 million wechat users active every month, and 45 billion pieces of information are released every day. From this data, we can see that wechat is a way of life. People's communication, social interaction and reading methods have changed. No matter individuals or businesses, they want t ...
Posted by ChaosXero on Mon, 09 Dec 2019 07:47:46 -0800
Ajax full data plus code
What is Ajax?
A: Ajax is a technology that can update some web pages and interact with the background without loading the whole web page.
The advantages of Ajax?
Answer: can maintain data without updating the entire page. This allows Web programs to respond more quickly to user actions without loading unnecessary data.
The disadvantag ...
Posted by intercampus on Mon, 09 Dec 2019 01:02:09 -0800
The use of Vue swiper
In the normal login interface, we can see the verification code. The function of verification code is to detect whether people are operating, to prevent non-human operations such as machines, and to prevent the database from being easily broken.
Verification code is usually written in back-end languages such as PHP and java.
But in the front en ...
Posted by ktsirig on Mon, 09 Dec 2019 00:57:34 -0800
PHP MySQL series functions
How to connect a mysql database with mysqli series functions?
1. PHP mysqli connect() function: mysqli connect() function opens a new connection to MySQL server.
Syntax: mysqli connect (host (specify host name or IP address), username(mysql user name), password(mysql password), dbname (default database))
Open a new connection to the MySQL se ...
Posted by healthnut on Sun, 08 Dec 2019 04:30:37 -0800
Configure lnmp environment using yum (CentOS7.6)
I. details of installation version
Server: MariaDB
Server version: 5.5.60-MariaDB MariaDB Server
[root@ln-125 ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@ln-125 ~]# nginx -v
nginx version: nginx/1.14.2
[root@ln-125 ~]# php-fpm -v
PHP 5.4.16 (fpm-fcgi) (built: Oct 30 2018 19:32:20)
Copyright (c) 1997-2013 The PHP Group ...
Posted by ozzythaman on Sun, 08 Dec 2019 01:58:32 -0800