Overview Of PHP

PHP

In this blog, we learn about what is PHP, the advantages of PHP, and what PHP can do.

What is PHP?

PHP stands for Hypertext PreProcessor and it is a server-side scripting language mainly used for web development to create dynamic websites and applications. PHP extension is “.PHP”. PHP code executes on the server, for example, apache server or Microsoft IIS. PHP interacts with databases and stores data, for example, MySQL, and SQL Server.

Advantages of PHP

  • PHP is an open source
  • It is embedded with HTML.
  • PHP is secure and it runs on different platforms (Windows, Linux, Unix, mac, etc…).

What PHP can do?

  • Using PHP to control and access some pages of the website.
  • PHP sends and receives cookies.
  • It helps to encrypt the data.
  • It is used to create and handles dynamic page content.
  • Using PHP to collect data from forms and store data in the database.
  • Using PHP to communicate files and databases.

What we can do with PHP?

  • Using PHP to create websites, blogs, social networks, and shopping websites.
  • Using PHP to write and manage CMS(Content Management System)
  • Using PHP to create search engines and backend APIs

Basic syntax in PHP

<?php
    statements
?>

Example

In this example use an echo statement to print the statement. Open the browser and enter localhost/PHP/b1.PHP to run the server and execute the file.

<?php
    echo “hello world this is PHP statements”;
?>

Output

PHP

I hope you understand this blog.