Friday, May 2, 2014

Introduction to PHP

What is PHP?
 PHP ( Hypertext Preprocesser) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.It is used to create a dynamic webpages and cannot be viewed by the user.It is behind the screen coding language which cannot be viewed from the source code view from the user.It must be manipulated by the web server in order to be executed.
For example:
<html>
<head>
<title>Example</title>
 </head>
 <body>
<?php
 echo "Hi, I'm a PHP script!";
 ?>

</body>
</html>


The best things in using PHP are that it is extremely simple for a newcomer, but offers many advanced features for a professional programmer. Don't be afraid reading the long list of PHP's features. You can jump in, in a short time, and start writing simple scripts in a few hours.

Common uses of PHP:
  • PHP performs system functions, i.e. from files on a system it can create, open, read, write, and close them.
  • PHP can handle forms, i.e. gather data from files, save data to a file, thru email you can send data, return data to the user.
  • You add, delete, modify elements within your database through PHP.
  • Access cookies variables and set cookies.
  • Using PHP, you can restrict users to access some pages of your website.
  • It can encrypt data.
    For more information on PHP we can visit the Offical link:http://www.php.net/

No comments:

Post a Comment