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:
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:
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.
First let’s create a PHP Project and then point the directory to our Apache directory.
Next, create a new PHP page.
Let us write the simplest PHP code:
<span><?</SPAN><SPAN>php </SPAN><SPAN>echo</SPAN>(<SPAN>"Hello PHP"</SPAN>);
At this time, we can see the results.
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>
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.