beansandsausages Posted January 11, 2008 Share Posted January 11, 2008 okay i have a bit of code that refreshed the page every so offten, but is it possable for it to refresh only once on that page? the code is $rate = 15; $url = $page; header("refresh: ."$rate."; url=/".$url."/"); Quote Link to comment Share on other sites More sharing options...
priti Posted January 11, 2008 Share Posted January 11, 2008 Your code say the page sud refresh every 15 sec set your $rate according to your need. regards Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted January 11, 2008 Share Posted January 11, 2008 use sessions session_start(); if (!isset($_SESSION['refreshed'])) { $_SESSION['refreshed'] = "yes"; $rate = 15; $url = $page; header("refresh: ."$rate."; url=/".$url."/"); } Quote Link to comment Share on other sites More sharing options...
beansandsausages Posted January 11, 2008 Author Share Posted January 11, 2008 added the code but it doesnt refresh the page, get no errors. the code is session_start(); if (!isset($_SESSION['refreshed'])) { $_SESSION['refreshed'] = "yes"; $rate = 15; $url = $page; header("refresh: ".$rate."; url=/".$url."/"); } Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted January 11, 2008 Share Posted January 11, 2008 refreshing the same url ? or a diff one Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.