PHP has become the most popular WebProgramming LanguageMy heart also began to itch. Well, let's start learning PHP from today.
1. appservnetwork
First, let's download something related to PhP.
First, we will download a complete set of PHP-related tools-appservnetwork.
After the installation is complete, the following appears in the Start Menu:
Let's start Apache first. (Control Server by service-> Apache start ). Apache and MySQL have been installed into the window service.
After the instance is started successfully. Let's open the installation directory:
On my local machine: D: \ appserv \ www. The directory contains the PHP page for our test.
Let's try entering the following in 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 an effective environment. Here I recommend Zend studio.
I use the latest version 7.1. Don't forget to register it!
3. Hello PHP
Now 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 point the directory to our Apache directory.
Next, create a PHP page.
Let's write down the simplest PHPCode:
<?PHP
Echo("Hello PHP");
Now we can see the result.
Well, let's write more like a webpage.
HTML >< br> head >< br> title > hellophp title >< Br> head >< br> body >< br>
php
echo (" Hello PHP ");
?>
body >< br> HTML >< br>
Is it more like a webpage?