You are here: Rotating URL website Code « PHP Programming Language « IT news, forums, messages
Rotating URL website Code

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация