MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

How to Run the First Program of PHP

Source: Shangpin China | Type: website encyclopedia | Time: December 16, 2015
After continuous installation and setting, someone must ask, "Can PHP run this way?" Now let's run the first one Website production PHP program.

(1) Start Zend Studio, as shown in Figure 2.19.
 Start Zend Studio

(2) When Zend Studio is started for the first time, a window for setting the workspace as shown in Figure 2.20 will pop up.
 Set up a workspace

(3) Choose File | New | Local PHP Project, as shown in Figure 2.21.
 Select Menu

(4) Enter "HelloWorid" in the "Project Name" text box in the pop-up dialog box, and enter the root directory set in Apache on the right side of "Location", as shown in Figure 2.22.
 Create a new project


(5) Click Finish to create a new project, as shown in Figure 2.23. The files in the project are listed in the PHP Explorer on the left.
 New project

(6) A file named "index. php" is automatically added to the new item date. Double click the file to open it, and enter the following code in the file.

 Hello World

(7) Press the shortcut key "Ctrl+S" or select the command "File" | "Save" to save. Then press "Ctrl+F11" to run the code, and a dialog box as shown in Figure 2.24 will be displayed to select the method to run the code.
 Select how to run code

(8) Select "PHP Web Application" to run the PHP code as a web page, and click "OK" to see the running results as shown in Figure 2.25. This is to display the running results of the code as a built-in browser.
 Operation results
The exciting moment is always so short that it is only a small step for PHP to say "Hello World", and also a big step for those who have not yet touched PHP!
Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]