loading...

PHP Introduction

PHP Interduction

PHP originally stood for Personal Home Page, but it now stands for the recursive backronym PHP: Hypertext Preprocessor. Originally created by Rasmus Lerdorf in 1994.
PHP is a general-purpose scripting language that is especially suited to server-side web development, in which case PHP generally runs on a web server. Any PHP code in a requested file is executed by the PHP runtime, usually to create dynamic web page.

PHP Characteristics

Five important characteristics make PHP's practical nature possible 
  • Simplicity
  • Efficiency
  • Security
  • Flexibility
  • Familiarity

PHP  File

PHP file can contain text, html, css, JavaScript, Images and PHP code.
PHP file have extension ".php".
PHP code start with '<?php' and end with '<?' in a php fie.


First PHP Example



<!DOCTYPE html>
<html>
<body>

<?php
echo "Hello friends! This is Jahul Hasan from http://php-points.blogspot.in.";
?>

</body>
</html>


OUTPUT

Hello friends! This is Jahul Hasan from http://php-points.blogspot.in.