Php integration kit server xampp installation and use tutorial (suitable for beginners who are playing PHP for the first time), xampp installation and use _ PHP Tutorial

Source: Internet
Author: User
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...

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.