--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote:
> Can somebody tell me why meta-refresh is not preferred to do
> re-directs?

Sure.

> using headers in php requires that no output is sent to the browser

I think this is what is causing you trouble, as this is incorrect. You can have
output and HTTP headers. In fact, that is what happens 99.9% of the time (or
more). Even when you don't specify headers yourself, you can be sure your Web
server is sending some.

You can use meta tags instead of HTTP headers in many cases, and most browsers
can accomodate this. People are most familiar with using it in substitute for
the Refresh header, but many headers can be sent in meta tags this way.

Of course, since we are PHP developers and can modify the *real* HTTP headers,
there is no reason for us to use meta tags instead. Doing so is a lot like
using JavaScript to perform logic that is more appropriately done in PHP. While
many developers still do this, the more experienced ones generally don't.

Hope that helps.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to