First of all, you need to go to the Youdao Translation API website to apply for Key:http://fanyi.youdao.com/openapi?path=data-mode
Once you get the key, you can start to get the query data from the API (back to JSON or XML, for personal preference,
Nginx and PHP-FPM built a status page, for want to understand the status of Nginx and monitor nginx is very helpful.
1. Enable Nginx status configuration
Add location to the default host or the host you wish to have access to
server { listen *:8
1:explode Split string
eg
$str = XXX:ABC;
$ABC = Explode (': ', ' $str '); Obtained is an array of
echo $ABC [1]; Output ABC
Cons: Must know the split point, and the location of the required data
Advantages: Good understanding
2:str_replace
Now, many of the activities to guide users to pay attention to the public, in order to participate in activities, then how to judge the user concerned about the public number? This article will provide you with PHP code to solve the
First, start
CD usr/local/nginx/sbin. /nginx
Second, restart
Change Configuration Restart Nginx
kill -/usr/local/nginx/sbin. /nginx-s Reload
Determine if the configuration file is correct
Nginx-t-c/usr/local/nginx/conf/nginx.conf or CD /usr/
Download the installation package http://nginx.org/packages/centos/6/x86_64/RPMS/or http://nginx.org/packages/mainline/centos/6/x86_64/RPMS/ Directory downstream Nginx installation package for each version
Installing Rpm-i xxx.rpm
An Nginx user
1. Open the include conf/extra/httpd-vhosts.conf in httpd.conf
2. Modify the C:\wamp64\bin\apache\apache2.4.17\conf\extra\httpd-vhost.conf and add the following
ServerAdmin project.com documentroot "C:\wamp64\www\project"
I've always felt it's difficult to build a station, and many times it's not a problem with programming languages, because you can learn the language. But the configuration of the environment is really a hindrance for beginners. When we started
1, the morning has been studying echarts diagram how to get, Echarts has two official website, one is Echarts3, one is echarts2, I have been using the ECHARTS3, the instance of the inside of several complex is called an XML, This XML is a well-known
use PHP to generate a single HTML document for the article data in the database. First, to facilitate the inclusion of search engines. Second, it is more secure to avoid exposing fields in the database to the Address bar.
give the code:
Personally feel to really understand the source code, if only stay in theory is not enough, so from now on, to start learning to develop their own nginx module, and then in turn to understand Nginx itself code.
Nginx send files or forward
2016.06.29
1. Description of the problem
Today, using thinkphp as a user login and registration interface, the Action property does not know how to fill in when submitting the form
Note: I am using the ThinkPHP3.2.3 version of the different version
1. After configuring the required sharing interface ():
Configuration:
Wx.config ({
Debug:true,///Open debug mode, call the return value of all the API will be on the client alert out, to see the incoming parameters can be opened on the PC side, the
Due to project requirements, data from the specified date period needs to be processed on a daily basis.
For example, the data for each day of the date period from 2016-06-01 to 2016-06-05 needs to be processed. First you need to get the date of
Docker PHP-FPM 7 + Yii 2.0
After Docker pull daocloud.io/php:7.0.2-fpm, Yii
In addition to the mbstring not initialized installation, Imagick is not installed well.
Installation method:1 Download the latest version of the source code from
Because of self-study, a lot of common sense do not know, do not understand ...
Problem:
If the. html suffix does not show PHP printing, change the suffix to. php back to Normal (premise: Server
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