Friday, September 5, 2014

What is PHP ?

PHP (recursive acronym for Hypetext Preprocessor) developed by Rasmus Lerdorf  in 1995.It is aServer-side scripting-language, and runs on server.It is used to manage dynamic content, databases, session tracking, even build entire e-commerce sites and is integrated with a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server. PHP widely used as open source general purpose scripting language and it can be easily embedded with Html.You can write the php code in the html page and embed with html elements.PHPcode specially enclosed with opening  <?php  and closing  ?> tag.We should always write php codes in between php opening and closing tag otherwise the code will not run/work.
Read more:
Best thing about PHP are it is extremely simple for newcomer and offers many advanced feature for the professional programmer/developer.
Example of  a PHP script :

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
echo "Hello, Welcome to PHP Programming!"
?>
</body>
</html>
     Output :
first-script

No comments:

Post a Comment