Recently began to use PHP to develop, each time to check how to install the configuration environment, each place is not as annoying. Write it yourself.
Apache
Enter the official website, open Download页面 , download the latest version of the
Required raw materials: (Provide links)
Php-5.6.10-win32-vc11-x86 (Zip) (Note that the PHP version is divided into IIS and Apache versions)
HTTPD-2.4.12-X86-R2 (Apache) (Zip)
MySQL Database (free installation version)
Configuration
title: There are two sorted arrays A and B, the remaining space of array A is just enough to hold B, implement a function that inserts all the numbers in B into a and all the numbers are sorted.
A lot of people start with the idea of simply
I. Introduction of Cookies
Cookies are often used to identify users. A cookie is a small file that the server leaves on the user's computer. Whenever the same computer requests a page through a browser, it also sends a cookie. With PHP,
Laravel deployed in Nginx always appears nginx 403 Forbidden
If it is not a permission issue, it is not an issue with the index file. That is, the Laravel's home directory was specified incorrectly. The root directory of the Laravel program cannot
Cookie Introduction
Cookies are data stored in the client's browser, and we use cookies to track and store user data. In general, cookies are returned from the server to the client via HTTP headers. Most Web programs support the operation of
Change the man.php file name to people.php and add the code:
1 Public function hi () {2return$this->_name. ' Say hi '; 3 }
New file man.php:
1
Php2/**3* Created by Phpstorm.4* User:administrator5* Date:2015/6/296* time:11:187*/89require_once'
1.require () statement
The Require () statement is used for the specified file instead of the statement itself, just like the include () statement in the C language. If the URL fopen wrappers in PHP configuration file php.ini is open (open by
My server environment is:
Ubuntu 14.04 64-bit
Install Apache2:
sudo apt-get install apache2
To install the PHP module:
sudo apt-get install php5
Install MySQL
sudo apt-get install
PHP gets the current class name function name Method name
PHP gets the current class name method name
The defined function
PHP gets the current class name, function name, method name
PHP gets the
The following are the string handler functions that are included with PHP itself.
Addcslashes-adds a backslash escape character for some characters inside a string
addslashes-characters inside a string are escaped in the specified
json_encode () output data
just know UTF-8 ., all in the output data, pay attention to the data encoding format!!!
Solution:
If you have a ANSI encoded string, using
Utf8_encode () is the
wrong function to deal with
This is one of the questions asked in a group today, mainly the time spent writing files is large.
I do an experiment here, every 20,000 uid write a file, about a file write is about 280kb, so that the overall write time only 13S
Paste the code
In https://pecl.php.net/find the extension source you want to download,
Here is an example of a mongodb extension.
Download the MongoDB database driver source code in Https://pecl.php.net/package/mongo. Then compile the installation.
wget -c
Problem: in C + +, I'm used to initializing arrays with memset functions, such as:
int sz = 100;int *a = (int*) malloc (sizeof (int) * SZ); memset (A,0,sizeof (a));
The above code dynamically opens an int array A, the size is SZ, and the open
Nginx Filter Module
The development steps of the HTTP filter module
Determine the source code file name;
Create a config script that adds the directory when configure is executed;
Define the filter module, instantiate the module
First look at the effect
Post-use link address: http://localhost/news/paged/1.html
1. Add filters add the. html suffix using the link address
Add_filter (' Get_pagenum_link ', ' My_get_pagenum_link ', 1, 1);
function My_get_pagenum_link
Lamp is a free, open source solution that represents Linux, Apache, MySQL, and PHP, and is used primarily as a common Web server for the establishment of a viable one. So how to install apache+php+mysql fast installation under CentOS6? The specific
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