Xhprof is a performance tuning tool developed by Facebook to help our PHP programs perform better and more robustly. Xhprof installation and use methods will be explained in this chapter. Xhprof is the pecl extension of PHP. There is no xdebug that
This article describes PHP generation PDF. We use the Tcpdf open source plugin to enable PHP to generate PDF documents. You can insert the functions of PHP to dynamically generate PDFs, such as pictures, HTML, links, tables, column charts, and so on.
The eval () function calculates the string according to the PHP code.The string must be a valid PHP code and must end with a semicolon.If no return statement is called in the code string, NULL is returned. If there is a parsing error in the code,
After learning the static , the students feel that the members with static decoration is particularly convenient, without creating objects can be used without static The decorated members appear troublesome and must be created to use, but we seldom
System:
CentOS
First of all, install gcc,gcc-c++, make and other compile tools
Y um install XXXX
Installation of Nginx
Module Dependencies Nginx need to rely on the following 3 a bag
1. Gzip module requires zlib library (Download:/ http/
Simplefork
Project Address: https://github.com/huyanping/simple-fork-php
Multi-process process concurrency framework based on PCNTL extension, interface similar to Java thread and runnable
Why do you write simplefork
/** * Logger Program time---can only record continuous call modifier * @param $time _key record key, multiple executions can specify the same key * @returnnone no return value, directly get the global variable $time_arr, If the call in the method
Nginx Rewrite rules related directives
Nginx rewrite rules related directives have if, rewrite, set, return, break, etc., where rewrite is the most critical instruction. A simple nginx rewrite rule syntax is as follows:
Rewrite ^/b/(. *)
Reprint Please specify source: http://blog.csdn.net/l1028386804/article/details/48289765
Operating system: CentOS6.5
This document mainly explains how to build nginx+tomcat+memcached Load Balancer Cluster server under CentOS6.5, Nginx is responsible
the use of memory pools brings many benefits to nginx, such as ease of use of memory, simplification of logic code, and improvement of program performance.
Several key points of knowledge are listed below:
(1) function Ngx_palloc () when trying to
History of PHP
1994 written in Perl by Rasmus Lerdorf and later rewritten in C language
1995 Rasmus Lerdorf to Personal Home Page Tools (PHP Tools) release PHP1 and PHP2
1997 Zeev Suraski and Andi gutmans rewrite PHP parser, PHP also at this
preparatory work:
First, set up the Xamp folder under the D disk, and then create the following 3 folders to store Apache, MYSQL, PHP
Second, prepare the source file:
III. installation of Apache
First set up the directory in the D disk
在xxx公司上班已有一月之多,但是我并没有真正做过代码方面的东西,每天都是理解公司已有的代码(公司使用的依然是YII框架,版本属于1.1.14)和业务。今天,抽空将最近更新的诸多功能做一个统计,根据代码反推最近产品部提出的需求(这些需求新人几乎都不让碰),或许对自己的成长有一定的帮助吧。看看别人怎样做的,思考一下,自己会如何去做。需要把每个版本的代码差异整理出来(用的是svn进行版本控制的,纯linux开发,相应的命令:svn di -rm:n,命令具体细节请自查):
Version: 2777
This address: http://blog.csdn.net/oneym/article/details/48050487
Author: Oneym
I. Description of the Environment
1, using the PHP environment to use XAMPP2. Win7_64 bit System3, XAMPP installed in the C packing directory
Ii. modification of
Turned out a few months ago when learning PHP, wrote down the Pyramid, stare at 1 more than a few minutes to see understand. Also depressed at that time how to write out, the original is a regular, and now the code refining the next, write down.
Overview
Variables in PHP are represented by a dollar sign followed by a variable name.
Variable names are case-sensitive.
A valid variable name begins with a letter or underscore, followed by any number of letters, numbers, or underscores.
Access Control (visibility)
PHP access control has public (publicly), protected (protected) and private (private)
Class members that are defined as public can be accessed from anywhere.A class member that is defined as protected can be accessed by
Judging the existence of variables
isset($var);//只判断是否有这个变量,变量存在就是 TURE;
The judging variable is empty
!empty($var);//“”,0,“0”,NULL,FALSE$var; 和没有任何属性的对象在用 empty判断时,都是空的,返回TURE;
To determine if False
if(0false){echo"true";}
The /*** interface defines the common behavior of different classes and then implements different functions within different classes. * Because the method implementation of the interface can be many, so the implementation of the method defined in
In PHP, the arguments in the function are passed for values such as:
The output result is 12.
If you want to become a reference pass, then only need to change the function body, using the reference symbol &
function f (&$a) {$a + = 10;
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