Environment configuration completed, halfway encountered problems, backup solution.
Raw materials:
Apache Service Monitor
PHP 5.2
Mysql 5.5
All of the above installation
First,
configure
Apache
First modify the Apache
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
A while ago, the test server on the PHP version did an upgrade, and later in the development of debugging, access to find a blank page, after grabbing the packet found that HTTP code is 500, in PHP error log record a fatal error, can't help but a
Set() When the private property of the class is used outside of the class, or when a property is not present, an error is set if __Set() method, then this method will be called * __Set(The member property name, the value of the member property to
/*** inheritance, access control, static (static) keyword, rewrite, final keyword, data access supplement, interface, polymorphic, abstract class *
//*** 1. Static properties are used to hold the class's public data * 2. Static methods can only
Phpcms Build PC-side web site is more convenient, but in the WAP mobile phone side is not practical, and the mobile phone built station feel is not very good, and the template is not good control, and now modify it, mobile phone station personal
Resources: http://php-cli.com/php-cli-tutorial.shtml
Write a PHP file
sudo vim /var/www/html/a.php
Write the interpreter at the beginning of the file
#!/usr/bin/php
include('...'); /*we can include orther *.php */echo `ls -al`; /* exe
The flexible extension of yii framework is favored by the company, so the project uses Yii, in order to be compatible with the original system, still chose the yii1.1 version.
The features of Yii are not mentioned here, mainly the re-encapsulation
Now the Django application is basically using UWSGI to deploy, similar to listen queue of socket "127.0.0.1:9001" (fd: 3) the following error occurred 2 times, below the two errors occurred in the process of resolution.
Error scenario
Take the two-dimensional array as an example to illustrate the de-weight for any key value, with a time complexity of ~o (n), with only one foreach
Loops:
Array (' name ' = ' James ', ' Age ' =>30, ), ' 1 ' =>array (' name ' = ' susu ', ' age ' =&
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;
* PHP CLI mode
* Cli:command lines Interface (command line interface)
* PHP can be used in addition to being
ApacheIIS server calls and can also be run in CLI mode, because PHP is essentially written in C language program
* The following are common
This article, examine how PHP code is interpreted and executed, and the life cycle of PHP scripts.
Overview
The start of the PHP service. Strictly speaking, the related process of PHP does not need to be started manually, it is running with the
1 Environment Preparation
Operating system
CentOS 7.0 x86_64
Nginx version
nginx-1.7.10
2 Installing Nginx
New user groups and users
# useradd nginx -s /sbin/nologin# id nginx
To install dependent files
yum
Before introducing the "System Cache Entries" and "User Cache Entries" page, first review the following (a) mentioned in the setting of the account and password, what is the use of this account password? Actually is used for these two pages, when we
MacBook to find a good free svn is really difficult, or is very vague picture, this would like to use Xcode, but toss a will want to open a PHP project folder, do not. Finally, I would like to use phpstorm. I didn't expect it to be very useful.
What is an infinite classification? Just like creating a new folder under Windows, you can create a new folder under the new folder so that unlimited
LoopsDown, infinite classification is also the case, the parent class can be divided into its
Write User time zone to cookie
PHP reads the user time zone and processes
The moment the user opens the browser, uses JS to get the time zone and write the cookie, which can be manipulated using an open source library on GitHub
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