|
Posted by Sibine on 11/05/16 12:00
Hi all,
I've searched this to death but didn't find much.
Basically we have a plasma screen in our office which has to look at
about 4 different websites (bbc news etc) on a regular basis.
I wrote a nice little array which half works but doesn't load the
pages properly. Code is:
<?
$pages = array(
'http://nerws.google.co.uk','http://www.sky.com/news','http://
www.bbc.co.uk/news');
shuffle($pages);
include($pages[0]);
?>
Basically after 60 seconds I'd like to randomly show one of the news
websites.
If anyone can help point out where I'm going wrong or a better way to
do this it would be excellent. I'd like to learn how to fix this, as
well as find a solution so anyone willing to offer a little tutorial
would be most appreciated.
Thanks
Si.
Navigation:
[Reply to this message]
|