first suppose you are in a directory with the chat's file(usually index.php)
to put in an header, do these things to the index.php
- Code: Select all
<?php include('header.php') ?>
//Direction: put before <?php $chat->printChat(); ?>
- Code: Select all
<?php include('footer.php') ?>
//Direction: put after <?php $chat->printChat(); ?>
and then... in the directory that contains your index.php, make header.php and footer.php
then all you got to do is to put PHP codes(to noobies... you can just put HTML codes...) inside header.php and footer.php... and the index.php will change..