Location/{
Root/data/www/file//Specify the actual directory absolute path;
AutoIndex on; Open Directory browsing function;
Autoindex_exact_size off; Close detailed file size statistics, let the file size display MB,GB units, default to
Install version 5.4 or 5.5 of PHP using Yum
Use centos6.5 as the test machine.
The following two commands make it easy to install version 5.4 of PHP
Yum Remove php php-bcmath php-cli php-common php-devel php-fpm php-gd php-imap php-ldap
Function Description:
1. Background check: The default value is assigned if the value is null when validating.
2. Foreground check: Check when the mouse loses focus, if there is a non-null (required) check, non-null authentication is performed
1. DownloadLibxml2-2.6.32.tar.gz http://download.csdn.net/detail/netlong339/1351852Php-5.3.16.tar.gz http://download.csdn.net/detail/aiyunbreak/53660612. Set up the target foldermkdir/usr/local/phpThat is, wait for the installed PHP to be installed
Reading guidance PHP requires an installed and running messaging system so that mail function mail () is available. The mail system program used is set up in the php.ini file.
Sending a message with the following code can always send a failure.
function Is_mobile () { //To determine if the mobile Access $regex _match= "/(nokia|iphone|android|motorola|^mot\-|softbank|foma| Docomo|kddi|up\.browser|up\.link| "; $regex _match.= "htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|
PHP String processing function Daquan
I just read a good summary of the text--php string processing function Daquan
Share:
Addcslashes-adds a backslash escape character for some characters inside a stringaddslashes-characters
Description
Favicon.ico occupy Nginx error_log log a lot of information, we really need to view the log to cover. So here we turn it off by log_not_found off.
Realize:
Put the following configuration into the server {} block, log logging when
do Android projects, without going to the server to fetch data, typically is Android access to PHP to extract JSON data. Similar examples on the internet a lot of, and incredibly code is the same, I want to spit, you send the code is not complete,
Reprinted from: https://www.douban.com/note/500351417/and http://www.ashuwp.com/
WordPress Retains data reinstallation
The strawberry 2015-05-21 17:58:39 walking the World
WordPress Keep Data ReloadWordPress has a system error, or program
PHP extract () function, its main function is to expand the array, the key name as the variable name, the element value is the variable value, it can be said that the operation of the array provides another convenient tool, for example, can be
Address
Https://github.com/langsim/nginx-1.6.2-comment
Brief introduction
Hope to complete a high readability of the Nginx source code comments.
Content that will not be commented
Spdy related code, because Spdy has been replaced by HTTP2.
If you use the Base64_encode and Base64_decode methods directly, the resulting string may not be applicable to the URL address. The following methods can be used to resolve the problem:
URL-safe string encoding:
Copy the Code code as follows:
1. Installation Steps
Step1: Download Ninx$ cd ~/download/$ wget http://nginx.org/download/nginx-1.8.1.tar.gzDifferent versions of the download address can be obtained from http://nginx.org/en/download.html.
Step2: Unzip and install$ tar
I had my project with my colleague's computer yesterday.
Modify host,nginx.conf complete, cmd into nginx directory
Nginx Stop
Start Nginx
Open the server_name you deserve.
403
Why? View the configuration file first
OK no problem
Then check
Sometimes when we display an article, we may need to set broken some keywords, highlighting them so that we can quickly find and locate these keywords, let's look at the specific implementation of the code.
/** * Keyword Set Broken method * *
The two mechanisms of select and Epoll are multi-path I/O mechanism solutions, select is the POSIX standard, and Epoll is unique to Linux.
The biggest benefit of epoll is that it does not decrease efficiency with the number of FD, polling processing
Data-id= "1190000004955144" >
In recent six years, has been using the PHP open source system to do projects, such as Drupal, Joomla, WordPress, Magento, and so on, although also have access to the mainstream framework, but not many. Perhaps I will
Overloading in PHP differs from traditional object-oriented overrides, such as in Java:
class A{ public void methodName(参数1); public void methodName(参数1,参数2); public void methodName(参数1,参数2,参数3); ...}
Overloading in PHP is an "elegant"
[root@localhost ~] #vi/etc/init.d/nginx #新建文件
#!/bin/bash# nginx Startup script for the Nginx HTTP server# it is v.0.0.2 version.# chkconfig:--15# Description:ngin X is a high-performance web and proxy server.# it had a lot of features, but
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