Need a cgi script
Does anyone know of a cgi script that would be able to do this: that would display a random image, but not everytime the page is reloaded.
I need it to show a new image every monday (like an image of the week) I also need it to display a link under the image. I've looked at most of the free cgi resources places(perlarchive.com, hotscripts.com, etc) and haven't found something like this.
I'd be using this to make a featured "Book of the Week" on a bookstore page. I need the script to not be too complicated, and easy for me to install.
I'd also like to be able to get something like this for *Free*.
richjb posted this at 18:06 — 25th May 2000.
They have: 193 posts
Joined: Feb 2000
Wouldn't a random book every week defeit the purpose of having it as the "book of the week?"
Richard
------------------
[email protected]
"I'm so wracked with guilt. I don't want to stop therapy
because I'm afraid to take the income away from my therapist.
He's got kids in college."
-- Tim Halpern
[email protected]
Everyone here has a website. It's just that not all are worth posting (Mine! ).
Suzanne posted this at 23:44 — 25th May 2000.
She has: 5,507 posts
Joined: Feb 2000
I don't have the answer, but a clarification?
I would think that a script that would change the image based on the date is really what you are looking for/want to build, as opposed to saying it's a random change. I think you are looking to not update the image yourself weekly, but perhaps just a small text database?
Suzanne
------------------
Zero Cattle
Suzanne
Tables DeMystified
clueless posted this at 00:05 — 26th May 2000.
They have: 27 posts
Joined: May 2000
I guess I didn't make it clear enough. I want to be able to change the image on a certain date, like every monday, with a premade database with the images and the links.
Arielladog posted this at 04:41 — 1st June 2000.
They have: 122 posts
Joined: Jun 1999
couldn't you do this with JavaScript?
clueless posted this at 20:20 — 4th June 2000.
They have: 27 posts
Joined: May 2000
I suppose, but I would like to avoid using javascript because I know there are still people out there that use netscape and IE 3.0
Orpheus posted this at 21:07 — 4th June 2000.
They have: 568 posts
Joined: Nov 1999
Javascript makes terrible security too.
arpith posted this at 02:57 — 5th June 2000.
They have: 14 posts
Joined: May 2000
Hi,
Well, I thought I'd try my hand at this. Perhaps it can help?
It should be called as a server side include from the html page. Simply remove the print "content-type:text/html\n\n" first.
Configure %img, %link and $total_imgs.
Create an empty file counter.dat and chmod 777. chmod 755 the cgi script.
Change "monday" in this statement:
Arpith.com
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.