PHP Set Kit Server XAMPP installation Tutorial (for beginners to play PHP for the first time) _php tips

Source: Internet
Author: User

Environment construction

Software:

XAMPP Download Address: https://www.apachefriends.org/zh_cn/index.html (recommended to use Thunderbolt download, or speed may be unbearable)

1. Installation

Open after installation to see the following:

2. Open the Service

Start Apache MySQL Service

3. Access Address

To browser input: http://127.0.0.1/xampp/splash.php

See the following interface: Description of the PHP environment has been built

Write HelloWorld:

To your installation path: (I install under D disk)

Open Folder See

The PHP language is placed by default in the Htdocs directory:

Create a new file under the Htdocs folder helloworld.php

Open the helloworld.php file and enter the following code:

Copy Code code as follows:

<?php
echo "HelloWorld,"; Output string HelloWorld
echo "This is my firstphp script."; Ditto
Echo Phpinfo (); Phpinfo () Output PHP environment information for system functions
?>

Open Address bar input: 127.0.0.1/helloworld.php

See the following screen:

This is your first HelloWorld.

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.