"PHP" Hello World

Source: Internet
Author: User
Tags apache php php mysql phpinfo

Transferred from: http://www.cnblogs.com/wangkangluo1/archive/2011/07/19/2110943.html

A moment to download

Xampp:https://sourceforge.net/projects/xampp/?source=typ_redirect (formerly address 404)

Installing the Windows PHP environment requires Apache PHP mysql three modules, I directly download the three-in-one version

Two-Installation

Double-click "Xampp-portable-win32-5.6.21-0-vc11-installer.exe" to install it all the way down

Note: The installation directory should be empty

Three Hello World

    1. open page : On start->xampp Control Panel open
    2. Open service : launch Apache MySQL service
    3. access authentication: access page: 127.0.0.1
    4. Write Hello World
      • Go to installation directory: D:\XAMPP\htdocs (i installed on D-drive)
      • Create a new helloworld.php text file and save
      • <? PHP     Echo "Hello World,";                      // output string: on page    Echo "This is my firstphp script,";       // output string, no line break    Echo Phpinfo ()                            ///phpinfo () is a system function that outputs PHP environment information ?>
      • Visit page: 127.0.0.1/helloworld.php

Four questions

Did not encounter any problems, back to continue to study, encountered a supplement came in.

"PHP" Hello World

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.