Reference article: http://www.open-open.com/lib/view/open1330171884015.html
NGINX-GRIDFS Module installation and use
Project home: Https://github.com/mdirolf/nginx-gridfs
With Nginx-gridfs, you can directly use
http
to access
Using Chrome's back-end network, we analyzed the
$.ajax() Several cases when you post JSON data to PHP:
JSON data cannot be obtained in PHP via $_post and $_request, i.e.$json $_post [' JSON ']; // Empty ($json) is 1
Note: PHP
Today's Mission:
1.XCAP Development, XML export
Actual:
Sorting using array operations
Harvest:
1. Operation of arrays
2.php reflection mechanism--reflectionclass, you can get properties and methods in a class
Model object:
$r = Reflectionclass
All said not to write articles is not technical cattle people, next! To record my rookie growth course!
The scope of a variable is something that every programmer must consider, but in PHP it's a lot different from C + +! For example, the function
Nginx blocking blank user agent.Sometime apps ' Backgroud request always visit a URL, and these requests ' user agent was black, so I want block them.
Nginx Configuration for a location
location / { if ($http_user_agent""){
PHP Basic Syntax
PHP // This is PHP single -line Comment/ * This is a multiline comment * /// Each PHP statement ends with a semicolon--must be used! // PHP is a case-sensitive language-except for the name of the
Before delving into this design pattern, let's take a look at an interview question, a blog from bird brother,
The topic is this:
Enables an object to have a foreach loop like an array, requiring that the property be private.
It is difficult to
Name
Version
Description (variable list from file ngx_http_variables)
$args
1.0.8
The parameters in the request;
$binary _remote_addr
1.0.8
Binary representation of a remote address
$body
The two methods in the Pdostatement class are specified as follows
BOOL Pdostatement::bindparam (mixed $parameter, mixed & $variable [, int $data _type = PDO::P aram_str [, int $length [ , mixed $driver _options]])BOOL Pdostatement::bindvalue
Nginx Configuration Installation Tutorial
Nginx ("Engine x") is a high- performance HTTP and reverse proxy Server, also a imap/pop3/smtp proxy Server. Nginx was developed by Igor Sysoev for the second rambler.ru site of Russian traffic, the
Environment configuration:
Turn on server pseudo-static
For Apache, for example, look at Apache's conf directory under httpd.conf and find the following code
LoadModule Rewrite_module modules/mod_rewrite.so
Remove the # in front of it and add it
First, "one-to-many" relationship
Table Shop (i)
Table Comment (Multi)
Save with SHOP_ID
Second, we first to manually generate shop and comment relationship
First case (can be generated)
Controller in
Tables can be generated,
all the analysis instructions use the text using light red, small fourth number in italics.
index.php
MediaWiki program entry
This is the main web entry point for MediaWiki.
Now start to look at the first code of the program, determine whether the
Java
Like Kenji Miyazawa's "Defying Wind and Rain" in the appearance of the character of the girl. Since childhood because of dull and big appetite and other characteristics of others as a fool, starting from primary school entry into the
Recently feel very cool, this project team did not have a special PHP, I was the first to come in to do PHP (and of course, front end), haha, I will design and modify the appropriate PHP framework for our business, haha, the feeling will learn a lot
1.
Error Hints :
Warning:cannot send session Cookie-headers already sent
Warning:cannot Send session cache Limiter-headers already sent
Analysis and Solutions :
The reason is that when you use session_start () in your program , you already
PHP handles strings in different ways, depending on whether the string is surrounded by single quotes or double quotes.
1. The single quote string is considered to be the original text, and PHP looks for the variable when processing the
HTML5
frameworks can quickly build responsive web sites that help
Programmer
reduce coding effort and reduce redundant code. Now there's a lot of free
HTML5
frameworks are available and are popular in development because of their responsive design,
Assuming that the local virtual machine IP is 192.168.23.128, if you want to use the domain name www.test01.com to access the virtual Web server, you only need to configure the following:
In Windows, edit the C:\Windows\System32\drivers\etc\hosts
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