The first PHP program-HelloWorld

Source: Internet
Author: User
Tags php development environment
: This article mainly introduces HelloWorld, the first PHP program. if you are interested in the PHP Tutorial, refer to it. (1) According to my first two articles BlogHow to Install Mac XAMPP"Eclipse PHP development environment configuration". Configure the PHP development environment and server.

(2) switch the workspace, and you must switch the workspace for PHP developmentXAMPPDirectory of the server. Otherwise, the PHP program cannot be run ., AverageXAMPPThe default path of is as follows:


(3) Create a new PHP Project in Eclipse and a new PHP File in the Project. The implementation code is as follows:

 
(4) openXAMPP, Open inApacheWeb Server.

.

(4) right-click the blank space of the current file --> Run As --> PHP Web Appliction. to run the program, the effect is as follows: of course, you can copy the link to the browser, you can also see the same effect.


The above introduces the first PHP program "Hello World", which includes some content and hopes to help those who are interested in the PHP Tutorial.

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.