This article mainly introduces the php integration kit server xampp installation and usage tutorial (suitable for beginners who are new to PHP for the first time). This article is also the first program to learn the PHP language: helloworld, if you need it, you can refer to the environment to build it.
Software:
Xampp: https://www.apachefriends.org/zh_cn/index.html (we recommend using Thunder download, otherwise the speed may be intolerable)
1. install
After installation, you can see the following:
2. enable the service
Start the apache Mysql service
3. access address
Enter http: // 127.0.0.1/xampp/splash. php in the browser.
The following page is displayed: the PHP environment has been set up.
Compile helloworld:
Go to your installation path: (I installed it on drive D)
Open the folder and you will see
The php language is stored in the htdocs directory by default:
Create a new file helloworld. php in the htdocs folder.
Open the helloworld. php file and enter the following code:
The code is as follows:
<? Php
Echo "helloworld,"; // output string helloworld
Echo "this is my firstphp script."; // same as above
Echo phpinfo (); // phpinfo () outputs php environment information for system functions
?>
Open the address bar and enter 127.0.0.1/helloworld. php.
The following figure is displayed:
This is your first helloworld.