p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: Reload page using PHP


Message #1 by "JOH" <jacob-o-hansen@p...> on Fri, 6 Sep 2002 19:03:39
Is it possible to reload a page using PHP...? Thanks Jacob.
Message #2 by "Gerry Vandermaesen" <gerry.v@s...> on Fri, 6 Sep 2002 20:05:34 +0200
No, but you could using HTML.

-----Original Message-----
From: JOH [mailto:jacob-o-hansen@p...] 
Sent: vrijdag 6 september 2002 19:04
To: beginning php
Subject: [beginning_php] Reload page using PHP


Is it possible to reload a page using PHP...? Thanks Jacob.

Message #3 by "Nikolai Devereaux" <yomama@u...> on Fri, 6 Sep 2002 13:36:15 -0700
> > Is it possible to reload a page using PHP...?
>
> No, but you could using HTML.


Would've been nice if you told him how... no?


Stick this tag between the <HEAD></HEAD> tags of your HTML document:


<META HTTP-EQUIV="REFRESH" CONTENT="5"  />

The integer in the CONTENT attribute specifies the number of seconds before
the page refreshes.


You can also use javascript to refresh the page.  Just search on Google for
"javascript refresh" and you'll find a bunch of hits that show you how.

take care,

nik

Message #4 by =?iso-8859-1?q?Andrew=20Walker?= <catbert303@y...> on Fri, 6 Sep 2002 23:05:36 +0100 (BST)
You can do the same using the PHP header function

header("Refresh: 0;
url=http://www.mysite.com/pagename.php"); 

it works the same as the html one Nik posted, the 0 is
the number of seconds before it refreshes, the url is
the page it will refresh to, this can be made up using
PHP variables if you want, but remember the header
function should be used before anything has been
outputed to the page.

take care,
Andy

 --- Nikolai Devereaux <yomama@u...> wrote: > 
> > > Is it possible to reload a page using PHP...?
> >
> > No, but you could using HTML.
> 
> 
> Would've been nice if you told him how... no?
> 
> 
> Stick this tag between the <HEAD></HEAD> tags of
> your HTML document:
> 
> 
> <META HTTP-EQUIV="REFRESH" CONTENT="5"  />
> 
> The integer in the CONTENT attribute specifies the
> number of seconds before
> the page refreshes.
> 
> 
> You can also use javascript to refresh the page. 
> Just search on Google for
> "javascript refresh" and you'll find a bunch of hits
> that show you how.
> 
> take care,
> 
> nik
> 
> 

=====
http://board.flashkit.com/board/search.php?action=simplesearch&exactname=yes&searchuser=catbert303

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

  Return to Index