. For notepad, make sure word wrap is OFF! #2 - save the file as a php file, or just change the extension from 'txt' to 'php'. #3 - copy the PHP file to your server root. Whatever you name it, that will be the url you use to display the cached banner. #4 - create a directory on your server root directory called 'cache'. Make sure its all lower case. #5 - test it by opening a browser (IE), and enter the complete URL (for example http://www.mycall.com/cachebanners.php). You should see: A. The banner displayed on the browser B. A gif file (named the same as $cache_name) created in the root directory on your server C. A gif file (named the same as $cache_name) created in the cache directory on your server. Do not delete this file, or your server will get banned. If not, something is not set right (usually the absolute path to your server is not right) #6 - use the proper URL from your site in your html webpage to display the banner cached on your server. For example with this filename, you would use 'cachebanners.php'. If you use the banner on multiple pages, you may have to include your entire URL (http://www.mycall.com/cachebanners.php) #7 - for additional banners, duplicate this file using another name (for example 'cachebanners1.php', and change $cache_name below to a different name for example 'solarbanner1.gif'). The banner is displayed on your html web page using the new name (for example http://www.mycall.com/cachebanners1.php) Email me at n0nbh@cox.net with any problems you may have, and I will try to help you. */ header("Content-type: image/gif"); //- - - - - - - start edit $absolute_path = "/root/server/name/"; /*Change '/root/server/name/' to the Absolute Hosting Path of your server (available from your server's hosting center). Mine is '/home/content/nOnbh/xml/' but they are all different. Make sure there is a '/' at the end. */ $banner = "http://www.hamqsl.com/solarxxx.php"; //Change 'solarxxx.php' to the desired banner that you want to display from my site. Example 'solarmuf.php' $cache_name = "solarbanner.gif"; /*You can leave this for the 1st banner you are caching. If you duplicate this file with a different name to cache additional banners, this name has to be different (or you will overwrite the 1st banner). For example 'solarbanner1.gif'. */ //- - - - - - - end edit - Do not edit below this line $refetchSecondsimg = 900; //900 seconds = 15 minutes. Do not change this to a lower number or your server will get banned $image_path = $absolute_path.$cache_name; if (file_exists($image_path) and filemtime($image_path) + $refetchSecondsimg > time()) { readfile($image_path); exit; } else{ $contents= file_get_contents($banner); if ($contents == false); else { $savefile = fopen($absolute_path."cache/".$cache_name, 'w'); fwrite($savefile, $contents); fclose($savefile); copy($absolute_path."cache/".$cache_name, $absolute_path.$cache_name); readfile($image_path); } exit; } ?>