I know how to read and parse XML with PHP, but is there a way to make it auto advance through pages of XML data automatically? I work for a TV station that is featuring open houses via a real estate xml feed and need to show one or two houses at a time for a half hour without requiring someone to sit there and advance the pages themselves. Any thoughts would be appreciated!
Asked
Active
Viewed 45 times
0
-
3Advance what page? What are you talking about? – Cthulhu Dec 02 '13 at 19:49
1 Answers
1
You could have PHP output the necessary JavaScript to redirect to the next page.
Here's how to redirect to a new page: How can I make a redirect page in jQuery/JavaScript? combine that with setTimeout()
to add a delay.
I'm not sure whether I would rely on this for a live TV feed, though - I'd be too scared of the embarrassment of the browser crashing, or an error popping up....
-
LOL! Luckily it's all pre-recorded so the finished product woul dbe checked before hand...thanks for the tip! I'll look into the javascript solution. – user3058760 Dec 02 '13 at 20:00