1, in the development of the SSH project, nginx Configuration service, did not configure the action, Nginx did not forward the action request.
The original is as follows:
#JSP直接给tomcat处理, because Nginx is not a servlet container, there is no way
Recently in a mall project, need to take out the data in the classification table, the classification table through a PID (parent class ID) associated with each classification, in order to organize the reading of the two-dimensional data into a tree-
in the process of PHP word processing, we may have these operations, such as the beginning of the article two words into a larger font, or some of the font color from the original bold to replace the red font, or in the Forum some of the violation
PHP is very efficient in development, which is understandable, but at the expense of execution efficiency. PHP Array function is very powerful, but also to consider more, try a few situations, just in case, here, I simply say two encounters of the
There are 502 504 errors in the project that are frequently tested. The problem is finally found by various troubleshooting, due to TCP access timeout
nginx.conf settings
Tcp_nodelay on;Fastcgi_connect_timeout 600;Fastcgi_send_timeout
MVC is a software approach for separating the logical and presentation layers of an application. In practice, because of this separation, your page contains only a few PHP scripts.
The model represents your data structure. Typically, the model class
PHP uses session to save user login information
Use session to save page login information
1. Database Connection Configuration page: connectvars.php
2. Login page: login.php
Connecting to a databaseThe relevant informationrequire_once '
The data you find on the Internet is basically the function.
function Ext_json_decode ($str, $mode =false) { if (preg_match ('/\w:/', $str)) { $str = preg_replace ('/(\w+):/ Is ', ' "$": ', $str); } Return Json_decode ($str, $mode);}
This
Idea: PHP side
Read File, while outputting the read to the browser
!--? php/** * Created by Phpstorm. * User:kung * date:15-10-21 * Time: Afternoon 8:00am */set_time_limit (0); Large files are timed out when the read content is not finished,
Write a form file upload.html:
Upload a new fileUpload a new file
Files that process the form: upload.php
Uploading Files
0) {echo ' problem: '; Switch ($_files[' userfile ' [' Error ']) {case 1:echo '
Laravel 5.1 In the use of Laravel's own function of the login, it login after the default is to jump to home this address, basically this is enough.
It's just that I want it to jump to a specific other address, like admin.
So what do we do?
Very
SCWS is the acronym for Simple Chinese Word segmentation (ie: Simplified Chinese word breaker).
1. Download the SCWS official class (PSCWS Fourth edition is used here)
http://www.xunsearch.com/scws/down/pscws4-20081221.tar.bz2
Download the xdb
Introduction to 2 ways to deploy
First Kind
Front 1 nginx servers do HTTP reverse proxy and load balancing
Behind n-server nginx do Web services and invoke the fast CGI service provided by PHP-FPM
This type of deployment is most common,
This is because PHP character encoding and windows are different issues, the simplified Chinese version of the name of Windows is generally used GBK or gb2312 encoding. The values of non-ASCII string variables in PHP are mostly encoded with UTF8
1. Define an empty array as a container,
$send _box_array = Array (
' Total ' =>0,//number of non- repeating data (total box count)
' list ' =>array ()//array with no duplicate data (box number name)
);
2. Judging duplicate data in a cyclic search
Recently also has been working with string conversion, the more commonly used is the two PHP comes with the string conversion. Then I'll use these two string-Encoding conversion functions in a few scenarios.
Usage scenarios:Request:Ajax POST
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service