Ok, so awhile ago I picked up a domain and wasn't sure what I'd ever use it for, but Barack Obama is Your New Bicycle totally inspired me. I want to create a similar effect: "random" word or phrase pulled from file/array, displayed as self-referential link, script runs again (thus new phrase) each time the link is clicked.
Here's the thing: I know enough PHP (and am a good enough researcher) to put something like this together, but I suspect it would not be efficient at all. I also suspect that for many other people, whipping up such a script would take no time flat. So... is anyone out there willing to help a girl out here? I'd definitely appreciate any pointers you can offer.
(BTW, my impulse, having only used "random" effects to a limited extent (like choosing which logo to show on my tumblelog, where there are only, like, 5 options) is to do something like
But, like I said, that doesn't seem very efficient, when there are 50+ quotes/phrases and I have no idea how much traffic will ensue.]
Here's the thing: I know enough PHP (and am a good enough researcher) to put something like this together, but I suspect it would not be efficient at all. I also suspect that for many other people, whipping up such a script would take no time flat. So... is anyone out there willing to help a girl out here? I'd definitely appreciate any pointers you can offer.
(BTW, my impulse, having only used "random" effects to a limited extent (like choosing which logo to show on my tumblelog, where there are only, like, 5 options) is to do something like
Code:
$x = rand(1,10);
if ($x == 1) { $phrase = "Macrumors is awesome";
elseif...
But, like I said, that doesn't seem very efficient, when there are 50+ quotes/phrases and I have no idea how much traffic will ensue.]