What is PHP?

PHP is a server side scripting language and a powerful tool to navigate with server database. PHP stands for Hyper Text Pre Processor. PHP provides the platform to build dynamic and interactive websites.

Why PHP?

PHP is an open source language that means it is free. It is free but it is best alternative to competitors like Microsoft ASP. It is widely used language program. Facebook is built over PHP. World’s most blogger use Wordpress which is an online, open source website creation tool written in PHP.

Benefits of Learning PHP

PHP is easy to learn. Learning other server side script like ‘ASP.Net’ might be little expensive but PHP requires only a PC and all the software to create environment for PHP scripting is free. PHP can run on various platforms like Windows, MAC OS X, Linux, Unix etc. and compatible with the all servers like Apache, IIS etc.

PHP supports wide range of database and can create dynamic web page contact. PHP can collect and perform the input Form data. PHP provide simplest way to execute database operations with MySQL and MySQL-i.

PHP is very easy to learn. You can easily set up the server on your Mac or windows PC and start the practice. Just copy and paste the example codes on your text editor and run the result over http localhost.

What should we know before start leaning PHP?

Before we start to learn PHP we must know below three languages:

  1. HTML
  2. CSS
  3. Java Script

Below is an example where HTML, CSS, JS and PHP are used all together.

Example - 1

<!DOCTYPE html>
<html lang = "en-US">
   margin: 10%;
   padding: 10%;
   border-radius: 15px;
   box-shadow: 5px 5px 5px;
   text-shadow:2px 2px 2px black;
  function showPhp(){
   var txt = document.getElementsByClassName('php-main');
   var btn = document.getElementsByClassName('btn');
    txt[0].style.display = 'block';
    btn[0].style.display = 'none';
<div style = "background:#333333; color:#CCCCCC; margin: 2%;
 padding: 2%; text-align:center;border-radius: 15px;">
 <h1>PHP Tutorials</h1>
<div class = "php-main" id = "php-main">
  echo '<h2>Current Version of PHP is <br>'.'<span class = "php-
<button class = "btn" onclick = "showPhp()">Show PHP Version</button> 

What is a PHP file?

PHP file is a document that can contains text, HTML, CSS, Java Scripts, SQL along with PHP codes. PHP documents are saved with ‘.php’ extension. PHP files are stored and executed on the server that is why it is called server side scripting language.

What PHP can perform?

  1. PHP can generate dynamic page content
  2. PHP can create, open, read, write, delete, and close files on the server
  3. PHP can collect form data
  4. PHP can send and receive cookies
  5. PHP can add, delete, modify data in your database
  6. PHP can be used to control user-access
  7. PHP can encrypt data
  8. PHP can output HTML, XML and XHTML, Images, text, PDF and other several types of small and large files.
PHP is free and can be downloaded from its official website www.php.net.

PHP Tutorials - Introduction of PHP


Hello friends! Progrramers is a tutorial site of w3 programming. If you like this tutorial site please encourages us by sharing this site links with your friends and nears & dears who want to learn web development and give us like on our Facebook page. If have any question please type in to comment box or send us message on social media sites via below given social links. Thank you, have a nice learning.

Post A Comment:


  1. If you have any question or suggestions please write down in comments

  2. This website is good for programmers to learn more. thanks for sharing good information looking forward for more updates posts.
    aws training in hyderabad

  3. Really I enjoy your site with effective and useful information. It is included very nice post with a lot of our resources.thanks for share. i enjoy this post. 網頁設計

  4. Nowadays individuals can quickly finish an ideal site with the assistance of various plugins. And Quillforms is among them this is the very best contact form wordpress. With the help of this, you can quickly construct various kinds of types for your website.