What is PHP ?

PHP Image
What is PHP ?
  • PHP is an open source ,interpreted and object oriented scripting language that can be executed at server side. PHP is well suited for web-development. Therefore it is used to develop web application.An application that is executed on the server and generates the dynamic page.
  • PHP was created by Rasmus Lerdorf in 1994 but appeared in the market in 1995 . PHP 7.46 is the latest version of PHP which was released on 14 May 2020.
Some of the important points to be noticed about PHP are as follows-
  1. PHP stands for Hypertext Preprocessor but some time it is called Personal Home Page.
  2. PHP is an interpreted language i.e there is no need for compilation.
  3. PHP is faster than other scripting languages for example ASP & JSP.
  4. PHP is server side scripting language,which is used to manage dynamic content of website.
  5. PHP  is an embedded into HTML.
  6. PHP  is an object-oriented language.
  7. PHP is open source scripting language.
  8. PHP is simple and easy to learn language.
  9. PHP runs on various platforms like windows,Linux,Mac Os etc.
  10. PHP is compatible with all server Apache, IIs etc.
  11. PHP file extension is .php .
Why use PHP ?
PHP is a server side scripting language. Which is used to design the dynamic web application with MySQL database.
  • It handles dynamic content,database as well as session tracking for the website.
  • you can create sessions in PHP.
  • It can access cookies variable and also set cookies.
  • It helps to encrypt the data and apply validation.
  • PHP can create,open,read,write,delete and class files on the server. PHP can also used to control user-access.
  • PHP supports several protocols such as HTTP,POP3,SNMP,LOAP,IMAP and many more.
  • PHP supports wide range of database. PHP is free to download from the official PHP resources www.php.net .
PHP Features-
PHP is very popular language because of its simplicity and open source.These are as follows-
Performance- PHP script is executed much faster than those scripts which are written in other languages such as JSP & ASP. PHP uses its own memory. so the server workload and loading time is automatically reduced, which results in faster processing speed and better performance.
Open-Source - PHP source code and s/w are freely available on the web. You can develop all the versions of PHP according to your requirement without paying any cost. 
Embedded-  PHP code can be easily embedded with HTML tags and scripts.
Platform Independent- It is available for windows,MAC,Linux,UNIX O/S. It can be develop in one O/S and can easily executed in other O/S.
Easy Syntax- PHP is easily understandable syntax. Programmers are comfortable coding with it.
Database Support- PHP supports all the leading database.Such as MySQL,SQLite,ODBC etc.
Loosely Typed Language-  PHP allows us to use a variable without declaring its datatype. It will be taken automatically at the time of execution based on the type of data it contains on its value.
Web Server Support-  PHP is compatible with almost all local servers used today like Apache,Netscape,Microsoft IIs etc.
Control of code-  Many programming language requires long script or code , Where as PHP can do the same work in a few lines of code. It has maximum control ever the website like you can make changes easily whenever you want.

What we can do using PHP-
Generate dynamic page,Handle button clicks,action on radio button,create database application,student registration,online course,online shopping cart etc.

To use PHP we must install PHP in our local system, but at first we need to install AMP(Apache,MySQL,PHP) software stack. It is available for all O/S. There are several AMP options available for different O/S.
  • WAMP for Windows
  • LAMP for Linux
  • MAMP for Mac
  • SAMP for Solaris
  • FAMP for FreeBSD
  • XAMPP(cross,apache,mysql,php,perl)

----Thank You----

Comments

Popular posts from this blog

What is C# ?

Communication Skills

Know The Market(Session-9)