Heh, I was on my way to bed and didn't think about that. (And my 'answer' was a bit abrupt as well)
Ah well, booboo's happen. I've always been an advocater of doing things the *right way*, and in this case, the Refresh header would seem to be the right way. JUST SAY NO to meta http-equiv tags! :) Chris (the other one) > -----Original Message----- > From: Chris Shiflett [mailto:[EMAIL PROTECTED] > Sent: Monday, February 16, 2004 8:51 AM > To: Chris; ajay; [EMAIL PROTECTED] > Subject: RE: [PHP] PHP REDIRECT > > > --- Chris <[EMAIL PROTECTED]> wrote: > > You can't view the page and have PHP redirect it. You would need to > > use a <meta> refresh tag or JavaScript. > > I assume by meta refresh tag, you mean this: > > <meta http-equiv="refresh" content="10;URL=http://example.org/"> > > What most people seem to not realize, is that the http-equiv attribute is > just a way to specify HTTP headers in a meta tag. This is handy when you > want to do so in static pages, but PHP has a more proper way to specify > headers: > > http://www.php.net/header > > This creates a real HTTP header, and there is no reason for any PHP > developer to use a meta tag for this purpose. > > Hope that helps. > > Chris > > ===== > Chris Shiflett - http://shiflett.org/ > > PHP Security - O'Reilly > Coming mid-2004 > HTTP Developer's Handbook - Sams > http://httphandbook.org/ > PHP Community Site > http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php