httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Grace" <rub...@earthlink.net>
Subject Re: PHP redirect to url
Date Thu, 31 Jan 2002 03:25:06 GMT
The correct function here is Header. Print outputs as part of the document,
Header sends it as an HTTP header. Header can't be used when you've already
sent other output (unless you use output buffering, but that's beyond the
scope of this newsgroup).

header('Location: http://host.domain.com/foo.html');

http://www.php.net/header

This probably belongs on the PHP mailing list...

-- Daniel Grace


----- Original Message -----
From: "Vernon A Webb" <VernMan@net-nation.com>
To: <users@httpd.apache.org>
Sent: Wednesday, January 30, 2002 3:41 PM
Subject: Re: PHP redirect to url


> All that did was print the word Location to the page??
>
> I want to be redirected.
>
> -----Original Message-----
> From: Jeff Daniels <jeff@texaslink.com>
> To: users@httpd.apache.org
> Date: Wed, 30 Jan 2002 17:42:20 -0600
> Subject: Re: PHP redirect to url
>
> >
> > in PHP do a
> >
> > print "Location: <url>";
> >



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message