The first time to use PHP to achieve the simulation landing is really a long time, but also quite fun is that their own 1.1 points to explore the harvest or slowly. Until now there is still a little to understand is why do not have to submit
Official definition:
Swoole: Redefining PHP
PHP's asynchronous, parallel, high-performance network communication engine, written in pure C, provides the PHP language for asynchronous multithreaded servers, asynchronous TCP/UDP network clients,
In Nginx, a complete shared memory is encapsulated in a data structure ngx_shm_zone_t.
typedef struct {U_char *addr; The actual address of the //allocated Shared memory (where the actual shared memory is allocated, depending on the
??
Installing Yii encounters "The file or directory to being published does not exist Bower/jquery/dist"
Reference http://www.yiichina.com/doc/guide/2.0/start-installation install Yii, when opening Web page, encountered "The file or directory to
Original link: http://www.orlion.ga/689/
A long time ago know that there is such a thing, but has been useless, has been using exit (), Var_dump () debug, the efficiency is very low.
First download xdebug DLL file (window environment) URL is: https:
(PHP 5 >= 5.3.0, PHP 7)
You can also define multiple namespaces in the same file. There are two syntactic forms of defining multiple namespaces in the same file.
Example #1 Define multiple namespaces, simple combination syntax
It is not
Render
1. Do not specify render
Result: (current models is within Controller)/(current Controller)/(current action). phtml
2. $this->render (' xxx ');
Result: (current models is within Controller)/(current controller)/xxx.phtml
3. Summary
Render
Because these two error prompts do not affect the normal operation of the Web page, we can make the page no longer have these two kinds of error prompts, the method is as follows:
Modify the Php,ini file. Will
error_reporting = E_ALL :
Revision
Ngx_http_limit_conn_module for some server traffic anomalies, excessive load, even large traffic malicious attack access, and so on, the number of concurrent restrictions, the module can be defined by the key to limit the number of connections per
yii2.0 Default Access form is: dxr.com/index.php?r=index/list, generally we will be configured to PathInfo form to access: dxr.com/index/list, so more in line with user habits.
The specific configuration method is:
One. Configure yii2.0.
Open the
Environment: Unbuntu 14.04
There are 4 ways to start php-cgi
1, php-cgi-b 3344 Direct start of the way
2. Start with spawn-cgi
3. PHP-FPM Start Management CGI
4, online to find Linux under php-cgi startup script
spawn-cgi start mode: sudo
PHP export Excel is generally used phpexcel;
I usually use this method:
Header ("Content-type:application/vnd.ms-excel"); Header ("Content-disposition:attachment;filename=logs.xls"); The following table can be written in the original
First, install Apache HTTP Server
1, specific can refer to another article: "Windows installation Apache HTTP Server"
2. This assumes that Apache HTTP server is installed to C:\Program FILES\APACHE\HTTPD
Second, download PHP
1. Download website:
Relative path
Path relative to the directory where the current file resides
Current directory:.
Top level directory:.
Path delimiter:/
Absolute path
The root of the operating system or the location of the site's document roots ScoreIf the
1. Check if the version control tool has been submitted and can determine the reason for the code, rollback2, view server, see server load, whether too high--------restart service3, see if the number of php-fpm processes is too large, exceeds the
I. Thread's most important three synchronization mechanisms
1. Signal Volume
2. Mutual exclusion Lock
3. Condition variables
Two. Implement a wrapper class for three synchronization mechanisms, respectively
#ifdef Locker_h#define Locker_h#include
Pear is a php extension and application library, contains a lot of useful classes, after installing the php5.0, pear is not actually installed, the installation method is as follows:
1. In the PHP directory, double-click Go-pear.bat.
2. Follow
From 2014-10-21 onwards, the PSR-0 standard was marked as obsolete. It is recommended to use the PSR-4 standard as replacement.
The loader (autoloader) must comply with the requirements below.
Requirements:
A complete namespace or class
Defined (' In_phpcms ') or exit (' No permission resources. ');
/* Phpcms V9 Login is the session, save session There are two ways, one is the way of database storage, one is the way of file storage, the default is the database storage mode.
TP FRAME:
1,MVP design mode
2, Template engine
3, common Operation class
The difference between a template engine and a framework
1, the template engine is just the framework used to separate HTML and PHP
MVC design Pattern
The M model data
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