Monday, January 31, 2011

Insert A Web Page to an another Page

Hi all after very a long time.I thought to stop this blog due to lack of motivation . But  I’m back Now .
I got the idea to post this from the one of my friend. He wanted to know how to insert a web page into an another  using PHP.You have to do is simply add an include tag inside the body tag.This method is useful when creating a php templates.In following example include php code are placed inside the div tags.You can also place this inside the table and other tags inside the body tag.
 
<html>
<body>
<div>
<?php include("header.php"); ?>
</div>
<div>
<?php include("body.php"); ?>
</div>
<div>
<?php include("footer.php"); ?>
</div>
</body>
</html>



image 


Hope you got something  if you are not familiar about this.


Until next post cheers

Saturday, August 29, 2009

What Is a Session?

A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests.

There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved by the same script or another script when requested from the same visitor.

Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor.

Thursday, July 30, 2009

What is PHP

PHP is a scripting language which originally  was stood for Personal Home Page by Rasmus Lerdorf(1994)

after modifications by Andi Gutmans and Zeev Suraski(1997)

 

it changed to PHP: hypertext  preprocessor.It is free software .


The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications.