After the PHP website is transferred from Apache to Nginx, it can only access the home page to jump to the cause of the 404 erro

... uses the tp framework to develop the project locally, using the phpstudy inheritance environment, initially using the apache server. But when switching to the nginx environment, only the home page can be accessed. Others will report the error of nginx404. At the time, it was quite...


[Line segment tree template] Interval modification interval summation

... 蒟蒻On the way of the online segment tree, lazy's whimsy--the delay mark shocked him. . 线段树template questions (2) - interval modification and query interval and: interval modification interval summation [title description] 如题, known a series, you need to carry out the following two...


Looking back into the two months of the society

... The passage of time is too fast, it is too late to look back. Look at yesterday, it’s all awkward. I have been in Shanghai for 2 months, reviewing the past and calming down. 初心 Because of the love of programming, I chose the computer major. After the junior year, I chose to come to...


The working principle of AI behavior tree

... has recently been applied to the behavior tree in the project. I have read many articles about behavior tree on the Internet. One of the articles I think is written very well. Its original text is English. In this article, I will translate it to the general meaning of it (note: because...


PHP: The principle of object assignment

... 题 Read the following PHP code, and select the output result () <?php class A { public $num = 100 ; } $a = new A ( ) ; $b = $a ; $a - > num = 200 ; echo $b - > num ; ?> 100 200 没有出 程序消息! 回答是2. 解析 In PHP, the basic type variables are placed on the stack, the objects and arrays...


[PHP basics] cookies and session

... If you wish to delete some session data, you can use the unset() or session_destroy() functions. ------ After unset(), session_destroy() exits the login more thoroughly ------ unset() function is used to release the specified session variable: <? php unset ( $_SESSION ['views' ]); ?...


In Thinkphp, the modist attribute of the volist template tag is used

... in the thinkphp manual. The content of the mod attribute of the volist template tag is as follows: output even record { volist name = "list" id = "vo" mod = "2" } { eq name = "mod" value = "1" } { $vo . name } { / eq } { / volist } Mod attribute is also used In the control of a certain...


What are the specific processes of website construction?

... For many companies, most of the orders are from the website. Without the website, the revenue will be reduced. Most of them will be introduced today. What are the specific processes for website construction, which are convenient for small partners who have the need to build a website....


TP5 how to hide the entry file index.php

... 一, Apache In ThinkPHP5.0, for the optimized URL access principle, also supports hiding the entry file through URL rewriting, the following Apache as an example to illustrate the hidden application entry file index .php settings. The following is the Apache configuration process, you can...


LNMP environment installation (compile and install)

... First step to add a new user and user group groupadd www Create www user group useradd www -g www Add www user to @www. @@第二步download ngnix installation package Download 1.10.1nginx installation package Put all the installation packages in the /home/package/ directory for easy...