PHP TUTORIALPHP TutorialPHP InstallationPHP Hello WorldPHP Basic SyntaxPHP CommentsPHP VariablesPHP Variable ScopePHP ConstantsPHP StringsPHP OutputPHP Data TypesPHP Type CastingPHP OperatorsPHP ConditionalsPHP Shorthand ConditionalsPHP LoopsPHP Loop Control StructuresPHP FunctionsPHP String FunctionsPHP ArraysPHP Superglobal VariablesPHP in HTMLPHP RegexRegex IntroductionRegex PCRE SyntaxPHP PREG FunctionsPHP FormsPHP Forms IntroductionPHP Forms CreatingPHP Forms SecurityPHP Forms ValidationPHP Forms Required InputsPHP Forms StickyPHP Forms Advanced ValidationPHP Forms FinishingPHP OOPPHP Object Oriented ProgrammingPHP OOP ClassesPHP OOP PropertiesPHP OOP ObjectsPHP OOP MethodsPHP OOP $this KeywordPHP OOP Constructors and DestructorsPHP OOP VisibilityPHP OOP InheritancePHP OOP Abstract Classes and MethodsPHP OOP Interfaces

PHP Installation

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.

Let's Install

Here are the steps.

MYSQL database is widely used with PHP. Therefore, we recommend you to install MYSQL with PHP.

However, you can do all of these steps at once by installing one of the following web development environments.

We recommend you to install an all-in-one development environment like WAMP in your computer to get started easily. For installation guides, please follow the links we have given above.

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.

Facebook Twitter