Forum Moderators: coopster
How could I emulate this via simple php script?
I just need to:
a) get text file (with html links seperated by new lines)
ex.
<a href="http://link1.com" title="Title etc...
<a href="http://link2.com" title="Title etc...
<a href="http://link3.com" title="Title etc...
b)Randomize the array and then print to produce:
Link1
Link3
Link2
or some other random order of links...
THANKS :)
-RollinJ
Then use shuffle [us3.php.net]; it may be a little easier to use in this case than array_rand [us3.php.net].
Good luck :)
I'm just confused because there are a number of "random quote generators" available out there ready made in php... but none of them seem to output more than two quotes at a time :(
If anyone's willing to write up some text/code it would be GREATLY appreciated I can promse you that!
Thanks again!
eelixduppy has pointed you in the proper direction, all we ask here [webmasterworld.com] is that you first do a little legwork to try and get something working. If you encounter roadblocks, we are always here for you!