Php integration kit server xampp installation and use tutorial (suitable for beginners who are new to PHP for the first time), xampp installation and use. Php integration kit server xampp installation and use tutorial (suitable for beginners who are playing with PHP for the first time), xampp installation and use environment build software: xampp: www. apachefriends. orgzh_cn 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:
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.
Ghost (suitable for the first time to play PHP novice), xampp installation environment to build software: xampp: https://www.apachefriends.org/zh_cn...