PHP Set Kit Server XAMPP installation Tutorial (for beginners who first played PHP), XAMPP installation using _php tutorial

Source: Internet
Author: User
Tags php language phpinfo

PHP Set Kit Server XAMPP installation Tutorial (for beginners who first play PHP), XAMPP installation using


Environment construction

Software:

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

1. Installation

After installation open See the following:

2. Turn on the service

Start Apache MySQL Service

3. Access Address

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

See the following interface: The PHP environment has been built

Write HelloWorld:

To your installation path: (I installed on the D drive)

Open folder to 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 the 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 field input: 127.0.0.1/helloworld.php

See the following screen:

This is your first HelloWorld.

http://www.bkjia.com/PHPjc/1011247.html www.bkjia.com true http://www.bkjia.com/PHPjc/1011247.html techarticle PHP Set Kit server XAMPP installation tutorial (for the first time to play PHP novice), XAMPP installation using the environment to build software: Xampp download address: https://www.apachefriends.org/zh_cn/...

  • 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.