Recently need to use PHP, so the usual accumulation of tidying up, there is this tutorial.
The first is the environment configuration:
1. Operating system: WINDOS7
2. Backstage: PHP
3. Front Desk: Html + js + CSS
4. Database: MYSQL
5. Development environment: XAMPP
1. Installing XAMPP
XAMPP is currently the most popular PHP development environment.
XAMPP is a completely free and easy-to-install Apache release that includes Apache, MariaDB, PHP, and Perl.
Baidu Search Xampp, find a can download the place, download down.
Double-click Install, Next, next, anyway the next step is right.
When the installation is complete, open the Control Panel.
If it doesn't start, then one of 80 ports or 443 ports is occupied, check it out:
If your computer has a virtual machine installed, it will take up 443 ports.
The following describes the 80-port-occupied solution:
Click here:
Click this again:
You'll see this, and then do it again (press the keyboard: Ctrl + F)
Input 80, enter:
See no, the port number is changed to something else, like 8080.
Save Ctrl+s.
Re-start:
Started successfully.
If not, it should be the 443 port is occupied, you just a moment:
And then do it again:
Search 443:
Can be changed to other, of course, if it has been successful before the start forget it.
2. View index.php
Assuming your current port number is changed to 8080, open the browser and access
http://localhost:8080/
You will see this page, which means that the PHP development environment has been installed.
"PHP additions and Deletions Example" section I-PHP development environment configuration