Why PHP is known as a scripting language?

PHP is a server-side scripting language that is used to develop Static websites or Dynamic websites or Web applications. It was originally created by Rasmus Lerdorf in 1994

  • PHP scripts can only be interpreted on a server that has PHP installed.
  • The client computers accessing the PHP scripts require a web browser only.
  • A PHP file contains PHP tags and ends with the extension “.php”.

What is Scripting Language?

A script is a set of programming instructions that are interpreted at runtime.

A scripting language is a language that interprets scripts at runtime. Scripts are usually embedded in other software environments.

The purpose of the scripts is usually to enhance the performance or perform routine tasks for an application.

Server-side scripts are interpreted on the server while client-side scripts are interpreted by the client application.

PHP is a server-side script that is interpreted on the server is an js(Javascript) example of a client-side script that is interpreted by the client browser. Both PHP and JavaScript can be embedded into HTML pages.

Programming Language Vs Scripting Language

Programming languageScripting language
Have all the features needed to develop complete applications?Mostly used for routine tasks
The code has to be compiled before it can be executedThe code is usually executed without compiling
Does not need to be embedded in other languagesIt is usually embedded in other software environments.

What does PHP stand for?

PHP means – Personal Home Page, but it now stands for the recursive backronym PHP: Hypertext Preprocessor.

PHP code may be embedded into HTML code, or it can be used in combination with various web template systems, web content management system and web frameworks.

Syntax :

     echo "Welcome to codehunger "; 

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also
Back to top button