Introduction to PHP

Introduction to PHP


  • * PHP is an acronym for “PHP Hypertext Preprocessor”.
  • * Other Names : Personal Home Page, Professional Home Page
  • * PHP is a widely-used open source general-purpose scripting language
  • * PHP scripts are executed on the server
  • * Predominantly used for generating HTML pages

Why PHP ?

  • * Can easily be embedded into HTML pages
  • * Interoperable
  • * Runs on various platforms.
  • * Supports a wide range of databases
  • * PHP is free.
  • * Compatible with almost all servers (Apache, IIS, etc.)
  • * Features of PHP are Similar to almost all compiled languages such as C#, Java , C++


Embedding PHP in HTML Pages -Example


<html>
<head>
<title>PHP Example</title>
</head>
<body>
<?php
        echo“HellowWorld!";
?>
</body>
</html>


What you need


* A Webserver (Apache, IIS, etc.)
* PHP http://php.net/manual/en/install.php
* MySQL

all required software can be easily installed by installing WAMP server.

WAMP is available at http://sourceforge.net/projects/wampserver/

Related Articles