Redirect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aniruddha
Forum Newbie
Posts: 3
Joined: Mon Jun 09, 2003 12:52 am
Location: Mumbai, India
Contact:

Redirect

Post 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
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Post 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");
aniruddha
Forum Newbie
Posts: 3
Joined: Mon Jun 09, 2003 12:52 am
Location: Mumbai, India
Contact:

Redirect

Post 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
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Re: Redirect

Post 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.
Post Reply