Re: Sent location header with port!
| From: | Johan Holst Nielsen | Date: | Fri, 12 Jan 2001 07:17:46 +0000 |
| Subject: | Re: Sent location header with port! | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-43834@lists.php.net to get a copy of this message | ||
Hmmm, where isn't any whitespace! It works when the location not contain a port! But the
problem is that it has to contain a port!! It a bit strange, otherwise I think it the server option
that is the problem! Or the router!
With Best Regards
Johan Holst Nielsen
> As a test, try recoding the page to use outpt buffering. If it
> then works, then it's like 99.9% sure that there is some
> whitespace between the "start" of the page, and the headr
> line. Recall that as soon as some "non PHP" whitespace is
> seen, it's too late to send a header, so if this is include()d
> in another file, for example, if that file has any whitespace
> then the header won't work.
>
> Johan Holst Nielsen wrote:
> >
> > It is wierd! I won't work for me!! Anyway who know a fail that could =
> > make this make this problem?! Could it be the firewall or something. I =
> > havn't seen this problem before! It works fine with other PHP files with =
> > other ports, but the problem comes when i tries to redirect to another =
> > page with a port included!
> >
> > With Best Regards
> >
> > Johan Holst Nielsen
> >
> > =20
> > ----- Original Message -----=20
> > From: "Sean R. Bright" <elixer@erols.com>
> > To: "'Johan Holst Nielsen'" <johan@christensen-co.dk>; =
> > <php-dev@lists.php.net>
> > Sent: Thursday, January 11, 2001 4:16 PM
> > Subject: RE: [PHP-DEV] Sent location header with port!
> >
> >
> > > This works fine for me...make absolutely sure that there is no =
> > whitespace
> > > before your opening <?php tags. This includes any files you are
> > > require()ing and include()ing.
> > >=20
> > > <?php
> > > header("Location:
> > > http://www.mysite.com:8080/index.php");
> > > ?>
> > >=20
> > > Sean
> > >=20
> > > -----Original Message-----
> > > From: Johan Holst Nielsen [mailto:johan@christensen-co.dk]
> > > Sent: Thursday, January 11, 2001 10:25 AM
> > > To: php-dev@lists.php.net
> > > Subject: [PHP-DEV] Sent location header with port!
> > >=20
> > >=20
> > > Hi ppl
> > >=20
> > > I have a problem with the header() function. I have to seen a header =
> > which
> > > contain a port! My script looks like this:
> > > <?
> > > header("Location:
> > > http://domain.com:8080/file.php3");
> > > ?>
> > >=20
> > > But it won't redirect! Anyway know a solution? Please help! Shall I =
> > define
> > > the port antoher place, or is it impossible to send a header =
> > containing a
> > > port?
> > >=20
> > > With Best Regards
> > >=20
> > > Johan Holst Nielsen
> > >=20
> > >=20
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-dev-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
> --
> ===========================================================================
> Jim Jagielski [|] jim@jaguNET.com [|]
> http://www.jaguNET.com/
> "Casanova will have many weapons; To beat him you will
> have to have more than forks and flatulence."
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>