Hi my project is taking some time, i need some help with a PHP script that has the following characteristics: the scripts reloads any web page after the number of seconds set in the has elapsed the script must show a window which has 2 areas (or 2 html frames) a thin one at the top which contains a label and a text box for any URL and one "GO" button to display the website in the big frame below id like to set it to 240 seconds thus every 240 seconds this php page will reload the bottom frame i googled and found this code but it does not reload any website only the website (PHP script) itself. $page = $_SERVER['PHP_SELF']; $sec = "240"; header("Refresh: $sec; url=$page"); echo "Watch the page reload itself!"; PHP:
Take a look at Javascript, and use the javascript to reference the link to reload in the target frame. It could be an easier solution for you.
if the frame or the page content will be a static or independent just use javascript. if it is not, use ajax for dynamic content.
thanks grit and bartolay13 i'm still working on it i think using Scrollable DIVs is simpler what do you think? <DIV id="topframe"> ... topframe stuff here ... </DIV> <DIV id="pagecontent"> ... the page content here ... </DIV>
Bump Hi all, i found out it's better easier to use Javascript... howeVER the sript should be a PHP page because the POST method is required for the script to run.