There are thousands of programming languages that exist and many more are being developed.So,why use PHP?But only few of these have become sufficiently popular and are used by many people.
PHP is an acronym for hypertext preprocessor.It’s a general-purpose server-side scripting language designed for web development. It is installed on more than 20 million web sites and 1 million web servers!It helps in creating dynamic websites and allows users to interact and exchange informaton.
PHP can run on Windows, Solaris, Linux or Unix and NT servers. PHP uses C/C++ as a base language hence it is more feasible for a wider audience. PHP is integrated with a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.
Let’s see a simple example for a PHP programme:
<html>
<head>
<title>First PHP Script</title>
<body>
<?php echo “hello world!” ;?> </body>
</head>
</html>
As we can see PHP is embedded in HTML.So its common when youre programming that these kind of PHP scripts can be seen in the code.Now lets see some common uses of PHP:
- It can perform system functon i.e. transferring files,reading from and writing to files etc.
- We can add,delete,modify contents of our database through PHP.
- We can access cookies and set variables for cookies with the help of PHP
- PHP can be used to encrypt data
- Access restrictions can be imposed on the website with the help of PHP.
- PHP supports many protocols like POP3,IMAP etc.Added features include support for JAVA and distributed arcitectures like COBRA that enables for the development of n-tier architecture.
PHP is a widely used server side scripting language that can be used for implementing various features of databases websites etc.Now the reason for its popularity can be summarized as follows:
- Flexibility
- Security
- Familiarity
- Efficiency
- Simplicity
Click here for government certification in Information Technology
12 Comments. Leave new
Not satisfactory..
Introducing Php is nice…!
Good one !
Good for beginners ๐
Nice job Divya ๐
Even after being not so good with programming, I could gather the information available here. I must say the blog is very user friendly.
Good work..!
Helpful for newbies.. Nice..
Well articulated!
nice work…
Unique
Informative
Uniquesโบ