Php is Hypertext Preprocessor is a widely used open-source server side scripting language. It allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. Php Code is executed in servers, that is why you’ll have to install a sever-like environment enabled by programs like XAMPP which is an Apache distribution.
1994, Rasmus Lerdorf unleashed the very first version of PHP.

Where is PHP used.
Three are the main areas where PHP scripts are used
- Server-side scripting
- Command line scripting
- Writing desktop applications
Server-side scripting
This is the most used and main target for PHP. You need three things to make this work the way you need it. The PHP a web server and a web browser. You need to run the web server where. You can access the PHP program output with a web browser, viewing the PHP page through the server.
Command line scripting
PHP script to run it without any server or browser. You only need the PHP parser to use it this way. This type of usage is ideal for scripts regularly executed using cron on Linux or Task Scheduler on Windows. These scripts can also be used for simple text processing tasks.
Writing desktop applications
PHP may not the very best language to create a desktop application with a graphical user interface, but if you know PHP very well, and would like to use some advanced PHP features in your client side applications you can also use PHP-GTK to write such programs. You also have the ability to write cross-platform applications this way.
Example

How to Use PHP?
There are three major things needed to code effectively in PHP
- PHP Parser
- Web Server
- Web Browser
1. PHP Parser: The parser takes PHP code and analyses it, outputting a respective syntax tree that puts the source into an easier to read format for machines to understand.
2. Web Server: The server is the program that will execute your PHP files to form webpages
3. Web Browser: The browser will allow you to view the PHP page through the server, in the same way as with any other content on the web
Who uses PHP?
PHP has been around for quite some time, it is still used among some of the world’s most well-known organisations and websites. Below are just a few of the companies that use it.
- Wikipedia
- WordPress
- Etsy
- Slack
PHP is still a useful investment for developers.
Basic Structure of PHP

Basic Structure of PHP
<!DOCTYPE html>
<html>
<body>
<h1>wizbrand</h1>
<?php
echo 'wizbrand';
?>
</body>
</html>