Jump to content

Recommended Posts

Ok, I got a wild man of a script in request here. I know you guys are good at writing scripts but do any of you think you can muster this one ?

A script to rotate randomly each day a differant image placed in a "certain folder" on my server.

So what would happen is, i put one picture in a .html file and rename it 1. then a put some text in the next .html file and rename it 2, and because i have put both the files (1 and 2) into a folder named, Picfold they would both be randomly seleceted EACH DAY ! so one day it would show text then next day it might show a picture. Yea? I have found lots of random page load scripts but i would like one that randomly changed each day ?

Can any one ya wizzards help me out. ? Thanx In advance. And please Explain it as if im thick ( Its not too far from the truth [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /] [img src=\"style_emoticons/[#EMO_DIR#]/huh.gif\" style=\"vertical-align:middle\" emoid=\":huh:\" border=\"0\" alt=\"huh.gif\" /] )
Link to comment
https://forums.phpfreaks.com/topic/13087-php-wizzkid-needed/
Share on other sites

Create a mysql (or other) database with a simple table in it, something like this

id - Integer (primary key)
day - text
month - text
year - text
file - text

Each time a visitor loads your page, have it query the database table to see if there is an entry for todays day month and year. if there is, display the file specified in the database, otherwise select one at random, and insert the name of it into the database to be found by the next user.

Link to comment
https://forums.phpfreaks.com/topic/13087-php-wizzkid-needed/#findComment-50352
Share on other sites

[!--quoteo(post=388790:date=Jun 28 2006, 07:48 AM:name=DaveLinger)--][div class=\'quotetop\']QUOTE(DaveLinger @ Jun 28 2006, 07:48 AM) [snapback]388790[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Something tells me Geekazoid is looking for the freelancing forum.
[/quote]

Sounds that way. Geekazoid, are you looking for someone to write a script for you, or are you simply looking for help with writing one yourself?
Link to comment
https://forums.phpfreaks.com/topic/13087-php-wizzkid-needed/#findComment-50371
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.