Questions and principles can be consulted: http://www.laruence.com/2009/11/13/1138.html
If you are using the Lnmp script one-click installation of the development environment, you can open a pathinfo as follows:
1. Note the try_files in
1. Modify the Hosts file:/etx/hosts
127.0.0.1 xxx.yyy.zzz
2. Go to the LAMPP/ETC directory.
sudo gedit httpd.conf
Search for "Include conf/extra/httpd-vhosts.conf" to make sure there is no # comment before
Search "
"
Become:
#
Nginx installed, when the error when starting
[Root@localhost nginx-1.6.2]#/usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx:error while loading shared libraries:libpcre.so.1:cannot open shared object file:no such F Ile or Directory
One: Time function and Uniqid ()
1:uniqid (): Generates a unique ID, the length of the string returned by the parameterless parameter is 13, and the parameter is 23
2: PHP functions that convert time and time stamps to each other
①:time ()
reprint Please indicate author: wetouns
in the use of MongoDB when writing query statements is always an egg pain, if the query is more complicated, to nest a good multi-layered objects, so I think, can use SQL-like syntax to query it, the code
There are many ways to install Nginx, here we compile the source code for installation, using the following command:
If an error occurs during the installation:
You will need to install Pcre first:
After the installation is
Common
1. Convert the UNIX timestamp to a format similar to "2012-05-12 11:09:15":
date (' y-m-d h:i:s ', $time);//$time The value of the Unix timestamp, which may have been taken from the database or ...
2. Convert the time in the "2012-05-12"
Recently, I was writing a project about finance. It involves a lot of money decimal problem. Once the floor wanted to achieve a downward rounding to two decimal places, suddenly found the following code is not normal.
$money =271.28;echo $money
In general, the whole workflow of fastcgi is this:
Load fastcgi Process Manager (IIS ISAPI or Apache Module) when Web server starts
The FASTCGI process Manager itself initializes, starts multiple CGI interpreter processes (visible multiple
yii2 Open session
UseYii\Web\Session; $session = Yii::$app -Session;//Check if a session is already openif($session -isActive) ...//Open a session$session -Open();//Close a session$session -Close();//destroys all data registered to a
The following is a whipped Egg game web version of the background source, all the source code is released. When there are a large number of class files to include, we just need to determine the corresponding rules, and then in the __autoload ()
How to use Php+js to implement upload progress bar, most people may have achieved, but download it? How about that? The principle is similar, that is, read and write, how many bytes each time, but such a bad is a long connection, the general
Recently in the whole Java and ucenter things, constrained by the project architecture needs, not completely ucenter-centric, so in the docking process encountered a lot of unpleasant things. After a lot of research, finally solved two of the major
Common PHP Functions:
String handler function:
The power of the place:
1. Other types of data are used in string processing functions and are automatically converted to strings before processing
2. You can treat a string as an array, as a character
static members, which can be thought of as belonging to an entire class rather than an instance of a class, retain only one variable value, which is valid for all instances, that is, all instances share this variable
The $this
Nginx+tomcat7+memcached Cluster session Sharing
Principle:
The main use of Memcached-session-manager (hereinafter referred to as MSM) Open source Tomcat plugin changes Tomcat original session storage mechanism, the session storage into the
Data Link: http://igogogo9.iteye.com/blog/105669
1, PHP Json_encode function is limited to encoding UTF-8 data, when converting GBK or GB2312 encoding data, will be converted to null characters.
2. Use of JSON in JavaScript:
① to convert the object
Configuration Files Section
Class
conn = new mysqli ($host, $username, $passwd); $this->selectdb ($dbname); $this->coding ($COD); }//Set the encoding format public function coding ($cod) {mysql_query ("set CHARACTER set". $cod);
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