Nginx Configuration Detailed
#全局配置
#高层配置
User www-data# running users default configuration
Pid/var/run/nginx.pid; #端口号默认配置
Worker_processes 8; #定义了nginx对外提供web服务时的worker进程数
#最优值取决于许多因素, including (but not limited to) the number of CPU cores, the
Modifying the encoding in the server in PHP development
1 Apache open Web page garbled, the method of modifying the Apache default character set is as follows:
Open Apache profile httpd.conf,windows under Apache configuration file path is
CLI (command line Interface) that is PHP, this SAPI is installed by default, after we install PHP on the server, we usually generate an executable file, assuming this file is/usr/local/bin/php, Then we can execute a PHP script with the following
One day the production environment suddenly occurred a mistake, throwing the exception is probably a table does not exist, I was thinking how can not exist? You're not going to be attacked by hackers, are you? So I want to know which database is
Your suffering will one day light up the road you've been through
20 days ago At this time I still sit in the school classroom tangled up after the industry I want to do what I can do, in the dorm a few people say together, suddenly found themselves
Add the following code to each
level two domain name site entry file index.php
Define (' DOMAIN ', ' cdfanfan.com '); Cdfanfan.com change to actual root domain name
The following two lines are for sub-domain sharing session Note that domain
Description of common values in $_server
using url:http://www.pro.com/index.php?type=1&id=1Dictation is not clear, directly on the result[Script_name] =/index.php//contains the path of the current script[Request_uri] =
It is often said that good times are short and the university is good to prove it. But after a short time, a variety of troubles flocked to think of their college days, although compared with the previous changes, but I do not work hard enough. When
Recently learned a new command curl, which has a parameter-I can see what kind of server the site uses, such as:
zhangxiaoliudemacbook-pro-2:~ zhangxiaoliu$ curl-i http://nginx.org/http/1.1 OKserver:nginx/1.9.8Date:fri, Dec 06:30:33 GMTcontent-type:
Here is both the end and the beginning
Came to the brothers even more than half a month, unconsciously feel into this full of magical places. Recall how long it has been, I do not know that I can still be so diligent, but also so brave, but also so
Esc_attr () (Filter properties)
It is generally written in the following format when writing the tag attributes of the Html code:
What if the Value property is dynamic output?
">
However, if the dynamic output attributes include double quotes,
In this paper, the use of filters for Smarty advanced Features is analyzed. Share to everyone for your reference, as follows:
Use of filters in advanced features
1. Pre-Filter
function remove_dw_comments ($tpl _source, & $smarty) {return
Reap the fruits of your own
A winter sunset, the leaves of ginkgo trees like tired butterflies. There is a base of it training on the opposite side of Ginkgo biloba. Here the teacher "care" students, students work hard to learn, every person who
In the process of infiltration, you can insert in the Web page
JS
code to get
Cookies
:
Document.cookie
then get to the Cookies how to upload to our own server?
here, I'm using a AJAX technology. But Ajax has a cross-domain problem, so the http
Share the three ways PHP reads the contents of a file.
PHP Read File contents:
First read mode *****************************
Header ("Content-type:text/html;charset=utf-8");
File path
$file _path="Text.txt";
Determine if you have this file
Get_post () (Get an article)
The Get_post () function can query the information of an article based on its ID, and can also return the current article in the loop.
Usage
Get_post ($post, $output, $filter);
Parameters
$id
(Integer | Object)
This paper describes the simple use of verification code in thinkphp. Share to everyone for your reference, as follows:
First generate the verification code, in the action file, directly call the thinkphp provided in the method can be generated,
To edit the Nginx configuration file:
sudo vi /etc/nginx/sites-available/default
Add the following code to the server{...}:
location ~* /xmlrpc.php { all; }
'). addclass (' pre-numbering '). Hide (); $ (this). addclass ('
Came to the brother even to participate in PHP training for more than 10 days, in these more than 10 days, embodies the brother of the brutal training, devil-like hell training. Work overtime every day, catch up on homework, write notes, preview,
Basic exercises for MySQL database
Create a database
Working with databases
Create a table
Char: fixed-length constant
VARCHAR: variable
Show Table
View table Structure
Inserting dataSHA1 ():
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