Skip to main content

PHP Introduction, What is PHP?, Scope of PHP


PHP means a Personal Home Page, It is a server-side script-based language that is specially designed to create a dynamic web application. but now PHP is professionally known as Hypertext preprocessor.
Hypertext:-  PHP provide text within tag with a complete block that is Hypertext block.

<?php
?>
here <?   ?> is called Hypetext block
Preprocessor:-  All in-built or predefined functionality will be integrated by default under PHP Hypertext block, no need to import header files and library separately.
The server-side script will be executed by Web Server and communicate with the Database server for dynamic application development.
For example, PHP is a Server-side script which will be executed by Apache Server and communicate with MYSQL Database, Oracle Database, MS-SQL, MongoDB, PostgreSQL, etc
PHP is open-source and free source web technology that provides multiple Web Framework(Codeigniter, Laravel, YI, CakePHP, etc) and CMS (Content Management System) such as WordPress, Magento, Drupal, OSCommerce, Prestashop, Shopify, etc.
Open source means PHP script can be modified with internal specification and can be customized by any other developer's, agency or company.
All source code related to PHP Server, Software tools are available.
Free Source means all related software tools, component, CMS and Framework is freely available by PHP, you can download and use it.

...................................................................................................................................................

History of PHP:-

PHP script was developed by Rasmus Lerdorf in 1994 to create a resume counting application using CGI(Common gateway interface) programming.
in 1995 PHP has added many features and released for developer modification.
in 1996 PHP was professionally released and name it PHP/FI where FI means Form Interpreter.
in 1997 lots of new features added in PHP and released for professional work.
PHP Script is a combination of C and Pearl programming language initially it was implemented for UNIX operating system but when Window released then it support on windows operating system also.
The version of PHP:-
PHP 1.0
PHP 2.0
PHP 3.0
PHP 4.0
PHP 5.0
PHP 6.0
PHP 7.0
Scope of PHP:-
Now web application is the most trending technology for the IT world and PHP is a specialist for the Web application.
Features of PHP:-
Now I am providing some features of PHP to implement PHP real-world.
1)  Easy to learn:-  PHP provides a simple syntax structure hence we can easily learn PHP Code.
1.1)  no datatype required
1.2) user-friendly error message
2) Light-weight:- PHP is a light-weight script hence it can be executed in less resource.
hence PHP performance is much better as compared to other script-based languages.
3) Open source and free source:-  PHP is open-source hence we can easily customize and debug it. all related software tools of PHP is freely available.
4)  CMS Support:- We can easily create dynamic web applications using fewer resources and fast as compare to code by scratch.
5) Support framework:-  PHP has the most popular framework CI, Laravel, YI, CakePHP which provide large application development using MVC and AGILE approach.
MVC is the design pattern which means Model, View, and Controller.
6) Secure:- PHP support Object-oriented programming structure and various predefined method for data security.

Comments

Popular posts from this blog

DSA in C# | Data Structure and Algorithm using C#

  DSA in C# |  Data Structure and Algorithm using C#: Lecture 1: Introduction to Data Structures and Algorithms (1 Hour) 1.1 What are Data Structures? Data Structures are ways to store and organize data so it can be used efficiently. Think of data structures as containers that hold data in a specific format. Types of Data Structures: Primitive Data Structures : These are basic structures built into the language. Example: int , float , char , bool in C#. Example : csharp int age = 25;  // 'age' stores an integer value. bool isStudent = true;  // 'isStudent' stores a boolean value. Non-Primitive Data Structures : These are more complex and are built using primitive types. They are divided into: Linear : Arrays, Lists, Queues, Stacks (data is arranged in a sequence). Non-Linear : Trees, Graphs (data is connected in more complex ways). Example : // Array is a simple linear data structure int[] number...

JSP Page design using Internal CSS

  JSP is used to design the user interface of an application, CSS is used to provide set of properties. Jsp provide proper page template to create user interface of dynamic web application. We can write CSS using three different ways 1)  inline CSS:-   we will write CSS tag under HTML elements <div style="width:200px; height:100px; background-color:green;"></div> 2)  Internal CSS:-  we will write CSS under <style> block. <style type="text/css"> #abc { width:200px;  height:100px;  background-color:green; } </style> <div id="abc"></div> 3) External CSS:-  we will write CSS to create a separate file and link it into HTML Web pages. create a separate file and named it style.css #abc { width:200px;  height:100px;  background-color:green; } go into Jsp page and link style.css <link href="style.css"  type="text/css" rel="stylesheet"   /> <div id="abc"> </div> Exam...

Conditional Statement in Python

It is used to solve condition-based problems using if and else block-level statement. it provides a separate block for  if statement, else statement, and elif statement . elif statement is similar to elseif statement of C, C++ and Java languages. Type of Conditional Statement:- 1) Simple if:- We can write a single if statement also in python, it will execute when the condition is true. for example, One real-world problem is here?? we want to display the salary of employees when the salary will be above 10000 otherwise not displayed. Syntax:- if(condition):    statements The solution to the above problem sal = int(input("Enter salary")) if sal>10000:     print("Salary is "+str(sal)) Q)  WAP to increase the salary of employees from 500 if entered salary will be less than 10000 otherwise the same salaries will be displayed. Solution:- x = int(input("enter salary")) if x<10000:     x=x+500 print(x)   Q) WAP to display th...