Step by step learn about PHP of 1 PHP development environment configuration
- 2020-03-31 20:20:21
- OfStack
1. AppServnetwork
First, let's download some PHP stuff.
First, we come to download a set of PHP related tools - (link: http://www.appservnetwork.com/).
(link: #)
The start menu will appear after the installation:
(link: https://www.jb51.net/upload/2010-2/20100215134255698.png)
Let's start Apache first. (Control Server by Service > Apache Start). Apache and MySQL have been installed as Windows services.
When the startup succeeds. Let's open the installation directory:
On my phone is: D:\AppServ\ WWW. We can see that there are PHP pages in the directory for us to test
Let's try typing in the browser address bar:
(link: https://www.jb51.net/upload/2010-2/20100215134255823.png)
At this point, you should be able to see the php-related pages.
2. Zend Studio
With running environment, we also need a effective related environment, personal recommendations here (link: http://www.zendstudio.net/zend-studio-all-in-one-download/).
I am using the latest version 7.1, and don't forget to (link: http://x.zendstudio.net/zend-studio-7-keymaker-online/? Act=Sub) oh, hehe!
3. Hello, PHP
Okay, let's develop the simplest PHP page.
Zend Studio 7.x and 6.x are both eclipse-based, so they are very similar to Eclipse.
(link: https://www.jb51.net/upload/2010-2/20100215134255336.png)
Let's first create a PHP Project and then point the directory to our Apache directory.
Next, create a new PHP page.
(link: https://www.jb51.net/upload/2010-2/20100215134255641.png)
Let's write down the simplest PHP code:
< ? PHP Echo (" Hello PHP "); (link: http://11011.net/software/vspaste)
At this point, we can see the result.
(link: https://www.jb51.net/upload/2010-2/20100215134255634.png)
Well, let's write it more like a web page.
< Html> < Head> < Title> HelloPHP< / title> < / head> < Body> < ? PHP Echo (" Hello PHP "); ? > < / body> < / html>
(link: http://11011.net/software/vspaste)
Is it more like a web page?