How to Install?
The first step is installing PHP on your computer. But, before that, you will need to understand this simple procedure about how we going to install PHP.
PHP can run by itself, but, here we will let it run on a web server. (That's how PHP is used as a server-side language)
What is a Web Server?
A web server is a software or hardware (or both working together) which processes and serves a response for incoming network requests. In simple words, you type hyvor.com in your web browser. Then, the server of hyvor.com will process the request and server the response to you.
PHP cannot do this without a web server. Therefore, we will install a web server, then PHP.
Here are the steps.
- Installing Web Server
- Installing PHP
- Installing a database
However, you can do all of these steps at once by installing one of the following web development environments.
For manual installation on Linux, please see this.
In this tutorial, we will use the Apache Web Server, PHP, and MYSQL Database.
Installing a text editor
You need a good text editor to edit .php files. Following text editors supports PHP.
There are some IDEs for PHP to make programming easier. But, for now, a text editor is enough for you to learn PHP.