Search code examples
phpxmlrssrefresh

Auto refresh XML RSS file using http-equiv="refresh"


I created an XML file for RSS feed using PHP, its header like below:

header("Content-Type: application/rss+xml; charset=UTF-8");
echo '<?xml version="1.0" encoding="utf-8" ?>';

I need to make the page refresh every 120 seconds

I can make any HTML or PHP page auto refresh using :

<meta http-equiv="refresh" content="120" />

How can I add the previous refresh code to my XML RSS code?


Solution

  • I found an easy free way to do refresh for me, it's a Google chrome application - even I'm normally using Firefox - but I think I can use chrome for that task

    Easy Auto Refresh

    It can Auto-refresh and auto-reload pages after any number of seconds.