Home > Backend Development > PHP Tutorial > Learn PHP step by step to learn PHP1 PHP development environment configuration

Learn PHP step by step to learn PHP1 PHP development environment configuration

WBOY
Release: 2016-07-29 08:41:49
Original
818 people have browsed it

1. AppServnetwork

First, let’s download some PHP related things.

First, let’s download a complete set of PHP-related tools-AppServnetwork.

AppServ 2.5.10 php running environment
appserv 2.6.0 php running environment
After the installation is completed, the start menu will appear:

 一步一步学习PHP1 php开发环境配置

Let us start Apache first. (Control Server by Service –>Apache Start). Among them, Apache and MySQL have been installed as Window services.

When the startup is successful. Let's open the installation directory:

On my local machine it is: D:AppServwww. We can see that there are PHP pages for us to test in the directory

Let us try typing on the browser address bar:

 一步一步学习PHP1 php开发环境配置

At this time, we should be able to see PHP related pages .

2. Zend Studio

With the running environment, we also need a powerful related environment. I personally recommend Zend Studio here.

I am using the latest version 7.1, don’t forget to register, haha!

3. Hello PHP

Okay, let’s develop the simplest PHP page.

Zend Studio 7.x and 6.x are both based on Eclipse, so they are very similar to Eclipse.

 一步一步学习PHP1 php开发环境配置

First let’s create a PHP Project and then point the directory to our Apache directory.

Next, create a new PHP page.

 一步一步学习PHP1 php开发环境配置

Let us write the simplest PHP code:

<span><?</SPAN><SPAN>php
</SPAN><SPAN>echo</SPAN>(<SPAN>"Hello PHP"</SPAN>);
Copy after login

At this time, we can see the results.

 一步一步学习PHP1 php开发环境配置

Haha, let’s write it more like a web page.

<SPAN><</SPAN><SPAN>html</SPAN><SPAN>>
<</SPAN><SPAN>head</SPAN><SPAN>>
 <</SPAN><SPAN>title</SPAN><SPAN>></span>HelloPHP<span></</SPAN><SPAN>title</SPAN><SPAN>>
</</SPAN><SPAN>head</SPAN><SPAN>>
<</SPAN><SPAN>body</SPAN><SPAN>>
 <?</SPAN><SPAN>php 
  </SPAN><SPAN>echo</SPAN>(<SPAN>"Hello PHP"</SPAN>);
 <SPAN>?>
</</SPAN><SPAN>body</SPAN><SPAN>>
</</SPAN><SPAN>html</SPAN><SPAN>>
</span>
Copy after login

Isn’t it more like a webpage?

The above introduces the step-by-step learning of PHP1 PHP development environment configuration, including the content of learning PHP. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template