Well, instead of doing the real work on the picture upload system I built a random picture grabber instead. Where /getpic/502 gets you picture number 502, /randpic/502/503 gets you (randomly) either picture 502 or 503. There is no limit to how many picture numbers you can use. So /randpic/502/544/545/811/191/1032/777 gets you one of those 7 pictures. Each time the page is reloaded it picks another random image from that list. It doesn't check for repeats, so possibly it will fetch the same picture two (or more) times in a row. Also, it doesn't matter what else is in the URL as long as /randpic/xxx/xxx/xxx is at the end (so digitalmedaitree.com/randpic/1/2/3 is the same as digitalmediatree.com/jim/weblog/randpic/1/2/3)
- jim 11-24-2001 8:58 pm




add a comment to this page:

Your post will be captioned "posted by anonymous,"
or you may enter a guest username below:


Line breaks work. HTML tags will be stripped.