Features of PHP - PHP started out as a small open source project that evolved as more and more people found out how useful it was. Rasmus Lerdorf unleashed the first version of P
3. Sitesbay.com
Features of PHP
PHP (Hypertext Preprocessor) is an open-source HTML-embedded server-side scripting language
which is used to develop dynamic and interactive web applications and also used as a general-
purpose programming language.
Some Basic Features of PHP
PHP can generate dynamic page content.
PHP can create, open, read, write, delete, and close files on the server.
PHP can collect form data.
PHP can send and receive cookies.
PHP can add, delete, modify data in your database.
PHP can be used to control user-access.
PHP can encrypt data.
PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
PHP is compatible with almost all servers used today (Apache, IIS, etc.)
PHP supports a wide range of databases
PHP is free. Download it from the official PHP resource: www.php.net
PHP is easy to learn and runs efficiently on the server side
With PHP you are not limited to output HTML. You can output images, PDF files, and even Flash
movies. You can also output any text, such as XHTML and XML.
4. Sitesbay.com
Why Use PHP
1. PHP there is no need to specify data type for variable declaration. Rather, it can be determined
at the time of execution depends on the value of the variable. So that, PHP is called as loosely
typed language.
2. PHP provides cross platform compatibility, unlike some other server side scripting language.
3. PHP has set of pre defined variables called superglobals which will be start by _. Some of the
examples are, $_GET, $_POST, $_COOKIE, $_SESSION, $_SERVER and etc. So, any variable except
superglobals, that are start with _ will cause error.
4. PHP programming structure includes variable variables; that is, the name of the variable can
be change dynamically.
5. This language contains access monitoring capability to create logs as the summary of recent
accesses.
6. And then, it includes several magic methods that begins with __ character which will be defined
and called at appropriate instance. For example, __clone() will be called, when the clone keyword
is used.
7. Predefined error reporting constants are available to generate a warning or error notice. For
example, when E_STRICT is enabled, a warning about deprecated methods will be generated.
8. Hire PHP developer ,In PHP supports extended regular expression that leads extensive pattern
matching with remarkable speed.
9. Learning PHP is very easy, and it runs efficiently on server-side.
10. PHP works on many operating systems such as Linux, Windows, Mac OS X.
11. PHP is FREE to download from the official PHP resource: php.net
12. PHP supports many databases like MySQL, MS SQL, Oracle, Sybase, PostgreSQL and many
others.
13. PHP can dynamically generate HTML, PDF, Flash, Text, CSV, XML and many others.
14. Coding in PHP is easy and fast, so it takes less time to build an application.
15. Many good PHP frameworks like Zend, Codeigniter, and Laravel are available in PHP.
16. Many web hosting options are available at the fair price with PHP.
17. With PHP code deployment is very easy.
18. Substantial PHP community support, and many tutorials and sample programs are available
online.
5. Sitesbay.com
What can we Do with PHP or Uses of PHP
PHP is used to create web applications, and some of the most popular web applications like
Facebook, Yahoo, Wikipedia, Twitter, WordPress all has been developed in PHP, and you can also
develop next big thing by using PHP.
"Hello World" Script in PHP
<html>
<head>
<title>Hello World</title>
</head>
<body>
<?php echo "Hello, World!";?>
</body>
</html>