--- 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

Reply via email to