|
|
|
Quality business correspondence.
|
|
|
|
Including files with PHP include() function
The include() function enables you to incorporate file into another php file
and the included file will run as it's part of that file.
For example, if you want display standard or same information more than one page.
It might be useful to create separate file and incorporate with any other file.
It makes easier to maintain the information by changing one file instead of going through all the files.
Here is how you would use php include function.
<?php include("topMenu.php") ?>
or you can include it this way if the file is located in different directory
<?php include("/root/topMenu.php"); ?>
Following code is an example of simple php code utilazing include() function
</head>
<body>
<?php
if($_SESSION)
{
$login=$_SESSION['login'] ;
}
else
{
$login="";
}
if($login !="")
{
include("member.php");
}
else
{
include("notmember.php");
}
?>
</body>
</html>
|
Delete Data
Cookies
|
|