Php integration kit server xampp installation and use tutorial (suitable for beginners who are playing PHP for the first time), xampp installation and use
Environment Construction
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:
Copy codeThe 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.