PHP or Hypertext Preprocessor is an HTML embedded scripting language that is used to create web pages that are dynamic. The PHP script is embedded in an HTML document.
PHP offers advantages like cross-platform operability, it is compatible with a wide range of data bases, most current web servers support this, communicates with a large number of network protocols, not limited to output that are HTML, and it has a strong capability of processing texts.
You need to install the processor of PHP and have your server be associated with .php files. When PHP is already installed in your computer, what you need to do now is to place the php files in the web directories and they will be automatically parsed whenever someone visits that page.