Install LNMP Environment:
The environment is CentOS7 minimized installation, the installation of development tools and other tools to choose a few (specifically remember)
nginx-1.8.1 mysql-5.7.11 php-5.5.33
Requirements:
MySQL and nginx data files,
X-powered-by is not an Apache or nginx output, but is output by a language parser or application framework, meaning that this value is used to tell the website which language or framework is written.For example:
Php
PHP standard output is:
12 Book of the most influential programmers (on)
Many people ask me this question, especially those colleagues and friends who have just started their software engineering career. What books should I read in order to be a better developer? Do I
Most of the months have not written essays, mainly seniors to a lot of messy things, looking for work. Mainly blame their own strength, but also the main lack of light-eyed combat experience, it is difficult to arouse the interest of HR. So here or
On-line project data volume is very large, PHP suddenly reported such a mistake, "
Fatal error:allowed memory size of 134217728 bytes exhausted (tried to allocate TES) "was originally due to
The memory used for PHP exceeds the maximum allowable
PHP 7 is officially released, PHP 7.0.0 contains the latest version of Zend Engine, including the following features:
Improved performance : PHP 7 is twice times faster than PHP 5.6
Significantly lower memory usage
Abstract syntax Tree
I do not know the hands of the cheap, the VPS server PHP upgrade to 7.0, although 7.x and previous compatibility is very high, but removed a lot of outdated usage, and some old applications are still in use. To the personal WordPress site errors,
PHP try-catch Statements
To further handle the exception, we need to use the Try-catch statement----include a try statement and at least one catch statement. Any code that calls a method that might throw an exception should use a try statement. The
Always want to build a personal website, but limited to the time and other reasons, has not been achieved, today-March 25, 2016, spent an afternoon of time, using WordPress set up a out, although relatively humble, but also a step out.
website It'
What is the nature of the problem?
Generally we use the Redhat system, such as CentOS Yum,debian system Apt-get installation Nginx, General Sbin directory and conf directory is separate, so that the security dog can not find Nginx directory, we
Objective
The following is the implementation of the classic algorithm through PHP, and calculate the time-consuming, can be time-consuming comparison of the complexity of these algorithms.
Insert Sort
Bubble sort
Select sort
and
Nginx
Nginx is a high-performance HTTP and reverse proxy server, also a IMAP/POP3/SMTP server.
To support the response of up to 5w concurrent connections, Nginx chooses epoll/kqueue as the network IO model.
Nginx can also be used as a Load balancer
1.
Appserv Combo Pack Installation
The use of Dreamweaver, which had been learned before
Site Establishment
2.
is the PHP tag pair, all the code in the tag pair is treated as PHP code.
You can also use ASP-style
and SGML-style
, etc.
3.
The introduction of common magic constants can be directly referenced in the PHP manual: Connect
Attach a Demo:
/** * Created by PhpStorm. * User: yanfeng * Date: 2016/3/31 * Time: 13:28 */functionoutput(){echo"function:"; echo__CLASS__
$string='April15,2003';$pattern='/(\w+)(\d+),(\d+)/i';$replacement='${1},${3}';echo preg_replace($pattern,$replacement,$string);?>
The result of this expression is april1,2003Cause: (\w+) can match April15 completely, but because (\d+) is behind
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.