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
When PHP accepts information submitted through an HTML form, it saves the submitted data in a global array, and we can call the system-specific array of automatic global variables to get those values. The usual automatic global variables are as
Linux system for CentOS 64-bit
First step: Download the corresponding version from http://nginx.org/download/(or
wget http://nginx.org/download/nginx-1.5.9.tar.gz directly on Linux)
Step two: Unzip TAR-ZXVF nginx-1.
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'
JSON, the full name is JavaScript Object Notation. It is a lightweight data interchange format based on the JavaScript programming language ECMA-262 3rd Edition-december 1999 standard, mainly used for exchanging data with the server. Similar to XML,
The PDO extension defines a lightweight, consistent interface for the PHP Access database, which provides a data access abstraction layer so that queries and data can be executed through a consistent function, regardless of the database used.
PDO is
Solution One: Differentiate different virtual hosts by port
① follow the method of binding a site to prepare
1. First Develop your own website (d:/myblog (stored in the MyBlog directory of D-disk))
2. Configure the httpd.conf file (stored in the
Introduction
I've been using nginx1.5.7 as a Web server and a proxy server, and it's always been an application. A tomcat is also a port, and only one domain name is appropriate.Today, the Tomcat on the server was consolidated, with 5 apps sharing
N Monkeys sit in turn 1, 2, 3 count off, each report 3 of the monkeys are out. The last one left is the Monkey king. Please write a function in PHP, enter the number of monkeys and the starting position of the count, the return value is the number
Original URL: http://qq398705749.iteye.com/blog/963818
use of http_x_forwarded_for and remote_addr in PHP1.remote_addr: The IP address of the user's computer that is browsing the current page2.http_x_forwarded_for: A gateway to the user's computer
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
1: Overview---PHP is a weakly typed language that can automatically convert data types based on changes in the operating environment
1.1 Principles for converting to Boolean types
The following values are converted to False in the Boolean type:
Definition and usage
The explode () function splits the string into arrays.
Grammar
Explode (Separator,string,limit)
Parameters
Description
Separator
Necessary. Specifies where to split the string.
Referencing files phpmailerautoload.php, class.phpmailer.php, class.smtp.php
Instantiating application Files index.php
SMTP needs accurate times, and the PHP time zone must be setThis should was done in the your php.ini, but the "What if you
Phpmailer fe v4.11 for thinkphp 3.2, you deserve to have!
This evening, when developing a thing with TP3.2, it is necessary to send the mail to the Phpmailer. So I have this article!----------------------------Phpmailer fe v4.11 for thinkphp
Introduction
Nginx is a high-performance HTTP and reverse proxy server, because of its stability, rich functionality, and low energy consumption is widely used. This article will demonstrate the installation of Nginx on FEDORA16 and integrate
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