[Solved] how to fix header and footer in php file


try this.,

 <div id="header">
    <?PHP include_once('header.php');?>
    </div>
    <div id="wrap">
    welcome to index file
    </div>
    <div id="footer">
    <?PHP include_once('foo.php');?>
    </div>

css:

#header{position:fixed;top:0px;}
#footer{position:fixed;bottom:0px;}

or

header.php 
<div id ="header"></div><div id="content">
footer.php
</div><div id="footer"></div>

index.php
<?PHP include_once('header.php');?>
 content here.,
<?PHP include_once('footer.php');?>

1

solved how to fix header and footer in php file