What do you need to do?
To get started with PHP, you can:
· Find a web host that supports PHP and MySQL
·
and MySQL
Use a web host that supports PHP
If your server supports PHP, then you don't need to do anything.
Just create .php files in your web directory and the server will automatically parse them for you.
You don’t need to compile any software, or install additional tools.
Since PHP is free, most web hosts provide support for PHP.
Build PHP on your own PC
However, if your server does not support PHP, you must:
· Install a Web Server
· Install PHP
· Install a database, such as MySQL
The official PHP website (PHP.net) has PHP installation instructions: http://php.net/manual/ en/install.php
PHP server component
For beginners, it is recommended to use the integrated server component, which already includes PHP, Apache, Mysql and other services, eliminating the need for Developers spend time in the tedious process of configuring the environment.
WampServer
Window system can use WampServer, download address: http://www.wampserver.com/, supports 32-bit and 64-bit systems, select the version according to your own system.
WampServer installation is also simple, you only need to keep clicking "Next" to complete the installation.
The installation steps are as shown below:
Click NEXT to enter the next step
Click next
Select the directory disk to be installed and click Next
##Select the default browsing tool as shown above. But please note that this browsing tool does not refer to the browser. It refers to the Windows browser, which is explorer.exe. The default is this one. Just click "Open". As shown in the picture above, enter the window of the administrator’s email and SMTP server. If you are willing to fill in this, you can fill it in. But in general, just click next. No It will affect the installation, click NEXT.Installation completedAfter the installation is completed, an icon will appear in the lower right corner of the screen, right-click, and then select Language—ChineseSelect languageLeft click and then click "www directory" to open the default folder where wampserver is installed to store web pages XAMPPXAMPP supports Mac OS and Window systems, download address: https://www.apachefriends.org/zh_cn/index.html. IDE (Integrated Development Environment, integrated development environment)Eclipse for PHP (free)###Eclipse is an open source, Java-based extensible development platform (if JDK is not installed, you need to download JDK and install it first). By itself, it is just a framework and a set of services for building development environments through plug-in components. Fortunately, Eclipse comes with a standard set of plug-ins, including the Java Development Kit (JDK).
Supports Window, Linux and Mac OS platforms.
Eclipse for PHP official download address: http://www.eclipse.org/downloads/packages/eclipse-php-developers/heliosr
PhpStorm (charged)
PhpStorm is a lightweight and convenient PHP IDE designed to provide user efficiency by deeply understanding the user's coding, providing intelligent code completion, fast navigation, and instant error checking.
PhpStorm is very suitable for PHP developers and front-end engineers. Provides functions such as: intelligent HTML/CSS/JavaScript/PHP editing, code quality analysis, version control integration (SVN, GIT), debugging and testing.
Supports Window, Linux and Mac OS platforms.
PhpStorm official download address: http://www.jetbrains.com/phpstorm/download/