PHP Tutorial
Step -1 : header.php
Step -2 : index.php
Step-3 : footer.php
next index.php
<?php include_once('header.php'); ?>
html code
<?php include_once('footer.php'); ?>
..................................................................................................................
or
........................................................................................................
<?php include 'header.php';?>
<?php include 'footer.php';?>
....................................................................................................................
........................................................................................................................
The PHP Hypertext Preprocessor (PHP) is a programming language that allows web developers to create dynamic content that interacts with databases
PHP is a recursive acronym for "PHP: Hypertext Preprocessor".
Characteristics of PHP
Five important characteristics make PHP's practical nature possible −
Simplicity
Efficiency
Security
Flexibility
Familiarity
Hello World using PHP.
<html>
<head>
<title>Hello World</title>
</head>
<body>
<?php echo "Hello, World!";?>
</body>
</html>
..................................................................................................................
Result
Hello, World!
.....................................................................................................................
Applications 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, through 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.
............................................................................................................
No comments:
Post a Comment