Response.redirect "http://www.php.net";

vs.

Header("Location: http://www.php.net";)

They are the exact same number of chars.  Why in the world is one so much
easier than the other?

If you want to make it simpler, just wrap it.  For example:

function redirect($url) {
        Header("Location: $url");
}

Then you can simply do:

   redirect("http://www.php.net";);

-Rasmus

On Fri, 22 Feb 2002, Rodent of Unusual Size wrote:

> Sent to the Apache contact address.  I told him I was forwarding
> it, but that he might not get a reply if his message was considered
> too rude.. :-)
>
> ----- Forwarded message from Tomas Marklund <[EMAIL PROTECTED]> -----
>
> From: "Tomas Marklund" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Response.redirect!!!
> Date: Thu, 21 Feb 2002 15:19:53 +0100
> Thread-Topic: Response.redirect!!!
> Thread-Index: AcG64tQ8eiZG89jOSfOaHiq6BNlW2Q==
>
> Why can't you program the most wanting function of them all, and the
> only thing that is better in ASP than PHP!!
> THE Response.redirect command!!!!!!!!!!!!!!!!!?????????????????++
>
> The header is to difficult to use!!!
>
> /Tomas Marklund
>
> ----- End forwarded message -----
>
> --
> #ken  P-)}
>
> Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
> Author, developer, opinionist      http://Apache-Server.Com/
>
> "Millennium hand and shrimp!"
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to