
The CGI-Forum
Here you can read all entries on the board and/or make own entries. Have fun!
a script for a picture change, its a little different then u might think, help me!!! - xwolf (xwolf@xwolf.com), 21.8.97 - 11:06:07- >i need help creating and/or im looking for a cgi script that will change a picture everyday throughout the year, and then start all over again, once the year is up, with the first picture on a homepage, (this means i have 365 different pics).
- >
- > i dont know much at all about scripting and im trying to learn if anyone can help please do!!
- >
- >
- Hi,
- I don't see this is a great problem..
- If you have 365 pictures, then do the following: Write the pathes to all of them
- into a file, one below the other, so you will have at last 365 lines.
- The script you have to code will read out all lines out of this file and
- take the linenumber which is the same as yday.
- yday you get if you split the localtime. See your perl-manual for this.
- After that you print out the data of the picture-file.
- Take a look into the hidden-counter to see how.
-
- The way you call the hidden counter is also the same as you call this script.
-
- Ciao,
-
- Wolfgang
-
-
Script written by Wolfgang Wiese, feedback welcome.