Jump to content

vande28

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by vande28

  1. When you get your database or image library set up and finalized, we can start on a script that will determine which image to show on a given day.

    Thanks for all the help I will make sure to contact you when we get the database up and running correctly. The server is getting replaced on monday so I will have to wait untill then. If you aren't gonna keep checking here could I have your email or somthing or can i contact you through here?
  2. Yeah, it wouldn't be very difficult.  If you are designing, then I recommend you order the pictures by date.  Just give each one a date to show.

    Yeah a coworker of mine is working on a system program to distill the images into a numerical order. So all I need now is a little help with the scripting so call these pics from the database. If you could offer some help there I would really appreciate it.
  3. So you have a database full of filenames.  If you want to show a picture of a shuttle on a specific day, then you also probably needs tags for each picture, like a picture of a shuttle launch would include the keyword "shuttle" in the tags or something.  Then you could search for specific images based on some keyword.  But then you would also need a list of days associated with keywords, so that July 4th is associated with the keyword "shuttle" or something.  You will also need a counter for each image to show how many times the image has been shown.  Since (presumably) you want each person to see the same image on the same day, then it can't be truly random.  If it was truly random, everyone would see a different image whenever they refreshed the page.  So it needs some way to figure out which image to show on a specific day.  With something like Astronomy Picture of the Day, those pictures are not random.  They are put in in a specific order, and are shown in that same order.  That's probably the easiest thing to do if you want everyone to see the same image on the same day.  If you do want it to be truly random, where someone hits refresh and sees a random image, that's easy too.  What's difficult is having a random database of pictures, with no order or anything like that, and having everyone see the same random image every day.  You need some sort of ordering to the pictures if you want everyone to see the same thing, if there isn't a deterministic way to figure out which picture to show, then everyone will see something different.

    That is alot of very good information thanks. I suppose then you are telling me that ultimately I will have to put these in some kind of order assuming that I put them in some kind of order could you help me write a script for that. I have a short amount of time and as such do not have the time to learn enough PHP to write a solid script. If you could help me out with that I would really appreciate it or if you know someone who can. Thanks
  4. What are the criteria to select an image?  Is it just random, or is there some order they are supposed to be shown in?

    I figured that I would use an ifelse statement to say if it is the shuttle launch day, show a picture of a previous shuttle launch, else take a picture from this database. It is random in that other than the if statements it doesn't actually matter what pic is shown we just want to avoid the same picture being shown twice.
  5. I need some help to make a script for a picture of the day type thing. I have never used PHP before and was assigned to make a picture of the day script and could use some good advice. The script has to be all in PHP and as simple as possible for a database of pictures that aren't named in any kind of order as in by date or something. If anyone can help me out or show me where I can get some help I would appreciate it. ~edit I forgot to mention that it isn't necessary nor do I have the time to learn PHP well enough to just cook up my own script I am actually looking for more of a quick fix. I have read enough to know that I need an ifelse statement to make this work but I dont know what to put in for the code blocks for each of those statements. As in how do I call images from a database each day a different image?~edit IIThe images won't have names like 1.jpg there are thousands of them and I can't rename them. They are going to be the names of pictures from space and can't be called by a random script that requires a numbering system such as 1.jpg, 2.jpg, etc.Thanks

  6. I am currently in the process of figuring out how to write a script that will draw from a database a new picture every day in an automated fashion. Assuming that I already have the data base I just need a script that will draw the pictures from the data base and post them in a designated spot on my website. I have not yet been able to do so. If some one could point me in the right direction I would appreciate it.Thanks

×
×
  • Create New...