Ansego wrote:
> The header has to be at the top of the page?
Not necessarily. header() has just to be called before any output is sent.
> why not call it redirect?
Probably because the Location header is part of HTTP[1], and actually,
the redirect is not done by PHP, but by the client.
If you prefer to call redirect($url) nonetheless, you can easily define
your own function:
function redirect($url) {
header('Location: '. $url); // further arguments as desired
}
BTW: the webmaster mailing list is probably not the appropriate place
for such requests/discussions[2].
[1] <https://tools.ietf.org/html/rfc2616>
[2] <http://www.php.net/support.php>
--
Christoph M. Becker
--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php