Load New External Web Page every 10 secs from Txt or db list

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cvandyke0524
Forum Newbie
Posts: 1
Joined: Tue Jan 13, 2009 2:14 pm

Load New External Web Page every 10 secs from Txt or db list

Post by cvandyke0524 »

Hello,

I'm looking for a way to parse a text file which contains a list of 5-10 URL's which are external to me and have a browser do a "refresh" or "redirect" to each entry (or rotate between them) every 10 seconds.

I've seen all kinds of things for placing code in the page header and having the redirect URL be the external address, but that will only refresh the first page, I don't have access to place code in the next page's header. Make sense?

Thanks.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Load New External Web Page every 10 secs from Txt or db list

Post by requinix »

Only way I can see it working is with frames and JavaScript.

Once you've redirected off your site you don't have control of the browser anymore. So some piece of your site needs to remain: like a frame. Drawback is that the user won't see the other site's URL in their address bar, just the URL of your frame page.

Another idea is a popup window, but it'd be easy for your users to close that and you might not want that to happen. If they don't want to close it (they specifically want to do this website-rotation thing) then this would work better.
Post Reply