PHP random script
- Started
- Last post
- 5 Responses
- fifty50
I found a nifty PHP random script here:
http://www.alistapart .com/articles/randomizer/But I can't figure out how to make it randomly choose HTML files, like it claims to be able to do.
getting it to randomly choose an image file is easy with the tag (img src="rotate.php") but getting it to work with HTML files seems to be a bit tricky or over my head.
a little help?
- espanel0
link no worky
- rabattski0
yep. it says in the script how to do it. that was a big rtfm dude! :D
- fifty500
yeah it says how to make it WORK with HTML but it doesn't explain to n00bs like me how to actually make it POINT to an html file. of course, as usual, the answer was right under my nose... just load up the PHP itself instead of creating an HTML file with the "img src" tag in it :P
- moth0
doh.
I use that script on my site.