Forum Moderators: coopster
Please can someone advise me on a simple low server resources content rotator for text and images.
I've looked at some but they are too complicated I don't need to track other peoples ads etc etc I just need to run mine.
Many thanks in advance for any pointers.
I got to page 15 here in this forum before I posted this as didn't see what I was looking for.
Many thanks
jothelion
I got to page 15 here in this forum before I posted this as didn't see what I was looking for.
Well....depending on what you are doing, there are some ways that this can be done. Here is the easiest way I can think of:
$content = array("content1","content2","content3","content4","content5");
[url=http://us2.php.net/shuffle]shuffle[/url]($content);
echo $content[0];
Or instead of hard-coding the content, have it in pages:
$content = array("content1.html","content2.html","content3.html","content4.html","content5.html");
shuffle($content);
echo [url=http://us2.php.net/manual/en/function.file-get-contents.php]file_get_contents[/url]($content[0]);
Good luck