LNMP use socket to connect Nginx optimize PHP-FPM performance
There are 2 ways to connect fastcgi nginx: TCP and UNIX domain sockets
What is a UNIX domain socket. --Wikipedia
A Unix domain socket or an IPC socket is a terminal that enables
the choice of communication mechanism
Nginx and PHP-FPM are using either a TCP socket or a UNIX socket. reasonable Configuration Nginx processing request number
#cat/proc/cpuinfo | grep processor #查看服务器cpu的处理器数量
#
Laravel first use, how to write the first Hello World
Laravel PHP Framework First Contact, encountered some difficulties, here to record, the need for children's shoes can look
Download the latest version from GitHub, address as
PHP Tags
When parsing a file, PHP looks for the start and end tags, which is
PHP also allows the use of short tags. And, but not encouraged to use. Short tags can only be used if you activate the Short_open_tag configuration directive in php.ini
"HTTP Access"
Generally we visit HTTP way many, mainly is: curl, Socket, file_get_contents () and other methods.
If you encounter the other server has not been responding, we are tragic, it is easy to kill the entire server, so when accessing HTTP
1. First of all, simply talk about the process of WiFiDog certification
Once the client connects to WiFi for the first time, the browser request will be redirected to:
login/?gw_address=%s&gw_port=%d&gw_id=%s&url=%s
After validation is passed, the
Toggle PHP Version:
Brew Install php-[version]
[Version]=56|70 etc
Brew Unlink php-Previous version
Brew Link php-now version
The appropriate configuration is to manage PHP extensions in/usr/local/etc/php/:
First: Brew Tap homebrew/php
View
Original Address:Use header or meta to achieve the difference between PHP page encoding
Author:Small leaf One, page coding
1. Use of Label Settings page encoding
The role of this label is to declare the client's browser with what character set code
http://www.pkphp.com/2010/01/09/zend-framework-render-intro/
Often when we use ZF to implement PHP's MVC, the most critical place is of course the various action methods of the Controller class, in which we identify and output the content. Dispatch
2011-10-31 12:44
because the Linux default Yum source is installed with PHP 5.1 package,
Yum Install php view later
Rpm-qa PHP
Php-5.1.6-23.2.el5_3
because some programs need to use the version above php5.2
so I found the information, finally
Today has been studying how to save the session to memory, we first say why to save the session in memory, what is the benefit.Because if Session_Start () is set up in our PHP program, then each person who accesses the file will produce a session
Deprecated:function set_magic_quotes_runtime () is deprecated error in installation phpcms, checked network and data found PHP5.3 and PHP6.0 removed set_magic _quotes_runtime () function.
Set_magic_quotes_runtime (0) function interpretationIn the
This is my first time in the Linux environment source installation nginx, build PHP environment, the process of reference http://www.nginx.cn/install and http://php.net/manual/zh/ install.unix.nginx.php Two official documents to install, or
First of all, recommend a PHP lightweight identification class, mobile-detect specifically to identify whether the phone or PC-side access to the site, which can be based on the terminal type of access to the mobile browser to adapt to the Web site
Today, porting a program to a remote server has a number of unusual errors, no local errors, and a variety of problems after the server. The problem that you are experiencing for the first time is summarized later and will be updated continuously
1.
Draft 0.0.1
one. the Zend Framework specification is mainly as follows:
Zend Framework Coding Specification
http://bbs.phpchina.com/viewthread.php?tid=142789
two. General Specification
1. variable naming and class naming(1) type + variable name:
The PHP session variable is used to store information about user sessions, or to change settings for user sessions. The session variable holds information that is a single user and is available to all pages in the application.
Understanding: Session
when we develop the app interface, we often need to process HTML Rich text strings, with many useful functions in PHP for us to use
functions you need to use:Str_replace () string replaces Html_entity_decode () HTML string to HTML tag strip_tags ()
Preface: Take this idle, to record the PHP and php-fpm configuration file optimization, but also easy to review their own later.
First of all, PHP.
1. php Script Execution time
Max_execution_time = 30
This option sets the maximum execution time for
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