PHP Banner Rotation Script
Hey all!
I've downloaded about 8 different php banner rotation scripts. I can't figure out how to work any of them. I can get them installed, but then I don't know how to make them work. I don't know how to use SSI, so is what I need is an easy free php script for banner rotation. With an admin panel. It doesn't have to be where clients log in also, but that would be nice. Would appreciate anyone's help. Whoever lets me know about the best script, I will place your banner on my site.
Liz
TaylorAtCTS posted this at 17:05 — 15th December 2004.
He has: 153 posts
Joined: Nov 2004
Hmm, let me ask you this.. are you saving the file that has the php code with a .php extension? If so then are you uploading those files to a server that supports php? You cant use php on your computer unless you have it installed, meaning you would have to upload it to your server before viewing it since PHP is a server-side script.
mailorder101 posted this at 17:22 — 15th December 2004.
They have: 4 posts
Joined: Nov 2004
My server does support php. I have several other php scripts that I use. The way all the scripts have worked, is you install the script on your server. All of them have had different directions for making the banners appear on your site. I've followed all the directions for each one I have downloaded repeatedly, and still can't get the banners to show up on the page. I'm doing it all using my server. At this point even an easy cgi script would be an option for me... Thanks for your time. Let me know if you have any suggestions.
TomeyMarketing.com
RockyTopWebDesign.biz
Troy1960 posted this at 19:39 — 15th December 2004.
They have: 152 posts
Joined: Sep 2004
Maybe looking into a remotely hosted script is an option for you until you get your scripting down.
mailorder101 posted this at 17:54 — 17th December 2004.
They have: 4 posts
Joined: Nov 2004
No way... *lol* I have too much pride to do that. I could have done that before I posted in the forums. It's a pride thing. I always figure out web stuff, and I WILL figure this out...
TomeyMarketing.com
RockyTopWebDesign.biz
Busy posted this at 22:26 — 15th December 2004.
He has: 6,151 posts
Joined: May 2001
a random banner code is just something like:
<?php
$banners = array("bannera.gif",
"bannerb.gif",
"bannerc.gif",
"bannerd.gif",
"bannere.gif",
"bannerf.gif",
"bannerg.gif",
"bannerh.gif",
"banneri.gif",
"bannerj.gif");
mt_srand(time());
$random_banner = (mt_rand(1, (count($banners)))-1);
$banners_kept = "./images/";
$banner_display = "<img src=\"".$banners_kept.$banners[$random_banner]."\" width=\"468\" height=\"60\" alt=\"\" border=\"0\" />";
echo $banner_display;
?>
place that code (or similar code) where you want the banners to appear, all you need to change is the banner.gif names and the $banners_kept value if the banners aren't kept in the images folder.
You mentioned an admin option but didnt say what for, you could make up a page that allows you to change the array manually but isn't really needed. You could use a counter system or client system but for something like that you're better off using something like PHPadnews (or whateve it is), check out hotscripts.com
openmind posted this at 00:45 — 17th December 2004.
He has: 945 posts
Joined: Aug 2001
http://phpadsnew.com/two/ is a great Open Source banner server
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.