Banner Rotation
With this script you can add a banner rotation to your site, the base code is:
$file = 'data.txt';
|
- Create data.txt file, set its content to 0 (Zero) CHMOD it to 777
- Change banner1.gif, banner2.gif .... to the name of your banners (including the paths to them if needed)
- You may add as much banners as you need, just add a new line to the code, for instance to add a 5th banner called banner5.gif to this code just add this line: $images[4] = 'banner5.gif';
PHP Include
Many scripts use this function to include a page inside another. For instance, you may have a "functions.php" file that contains a list of functions you prepared for your personal use and that you may need for more than just a page.
Instead of pasting the code on each page, just write on every page :
<?
|
That's just an example but this function is actually widely used.

