Page 1 of 1

Redirect

Posted: Mon Jun 09, 2003 12:52 am
by aniruddha
Hi all,

How to dynamically add the refresh header using header() function. I used header("Refresh: 10"); but it was working only in Mozilla. Thanks in advance.

Aniruddha Deshpande

Posted: Mon Jun 09, 2003 1:35 am
by delorian
You should also provide what to refresh, like:

Code: Select all

header("Refresh: 10; URL=the/path/to/file/you/want/to/refresh.php");

Redirect

Posted: Mon Jun 09, 2003 5:46 am
by aniruddha
Hi delorian,

Infact I did provided the Url. Code which I quoted in my example refreshes the current page.

Iam facing this problem with Netscape 4.79 (Linux) only.


Thanks for your valuable advice,
Aniruddha Deshpande

Re: Redirect

Posted: Mon Jun 09, 2003 3:48 pm
by delorian
aniruddha wrote:Iam facing this problem with Netscape 4.79 (Linux) only.
I have to say that I never had problems with refresh header. Maybe there's something wrong with that browser. Check the documentation.