HelloWorld applet for PHP Learning

Source: Internet
Author: User
1. first, download a software tool that can write php. Here, I use Dreamweaver8. If there is no software, I can download one online. below, this section describes how to create a site and compile a HelloWorld applet. 2.open the dreamweaver.exe tool. The following page is displayed: 3. Click Create PHP for a new project, and the page is displayed: 4. Next

1. first, download a software tool that can write php. Here, I use Dreamweaver 8. If there is no software, I can download one online. below, this section describes how to create a site and compile a Hello World applet. 2.open the dreamweaver.exe tool. The following page is displayed: 3. Click Create PHP for a new project, and the page is displayed: 4. Next

1. first, download a software tool that can write php. Here, I use Dreamweaver 8. If there is no software, I can download one online. below, this section describes how to create a site and compile a Hello World applet.

2.open dreamweaver.exe and the following page appears:

3. Click create new project PHP, and the page is displayed:

4. Next, select the site in the toolbar, select the menu item from the drop-down list to create a site, and an interface is displayed:

5. change the site name to phpTest, and select under the www folder where wamp is installed in the local root folder, and create a folder below to put the files I wrote, Because I installed them on the F disk, therefore, the local root folder is F: \ wamp \ www \ phpTest, And the link is relative to the root directory of the selected site, and then the Http address is made into http: // localhost/phpTest, as shown in

6. Click test server, as shown in:

7. Set it:

8. Click "OK" to create the site, and then you can start to write code.

9. Write the following code:

 

10. Attach the following code:

 Untitled document
 


11. then press ctrl + s to save it. It will automatically help you get the phpTest folder under the www directory, modify the file name, and change it to Hello. php, return to the software, click the browser preview in the arrow, or press the shortcut key F12:
 Untitled document
 


12. then you can open a web page to display Hello World, but note that if you do not enable wamp, you will not be able to open it, that is, you have not enabled the required service, to display Hello World, you must open it, as shown in:

13. The above content is for reference only. It is not well written. Please forgive me. If you have any errors or do not understand it, please comment or send a message to me. I will correct and solve it in time, thank you!

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.