Re: header() problem
| From: | LaserJetter | Date: | Fri, 28 Dec 2001 22:10:20 +0000 |
| Subject: | Re: header() problem | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-11196@lists.php.net to get a copy of this message | ||
try getting rid of the extra line between <?php and header, try getting rid
of exit(); and try getting rid of the next blank line
"Jukka Pakkanen" <jukka.pakkanen@qnet.fi> wrote in message
news:000b01c18fbc$71813000$12aba5c3@qnet.fi...
The test.php file only has:
<?php
header("Location: http://www.qnet.fi\r\n\n");
exit();
?>
Result is a blank page, source code:
[!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"]
[HTML][HEAD]
[META http-equiv=Content-Type content="text/html;
charset=windows-1252"][/HEAD]
[BODY][/BODY][/HTML]
The webserver is Website Pro 3. I've tried IE 5.5sp2 and IE 6. You can try
it at http://www.karting.fi/test.php
Otherwise PHP works ok in the server.
> At 05:44 PM 12/28/2001 +0200, Jukka Pakkanen wrote:
> >Thanks Mike, but still no luck. Nothing happens. No errors, no redirects,
> >no nothing :(
>
> Hmmm.. have you tried just making a blank page with this code? If so,
what
> shows up in the browser? A blank page? View the source, what does it
show?
>
> You're running Netscape 4, is that right? Have you tried it in another
> browser?
>
> -Mike
>
>
> > > At 02:46 PM 12/28/2001 +0200, you wrote:
> > > >Running NT4sp6a and PHP4.1.0.
> > > >
> > > >I try to redirect the browser to a new location [<? header("Location:
> > > >http://www.qnet.fi"); ?>], but nothing
> > > >happens in the browser. There
> > are no
> > > >extra spaces, CR's, LF's or anything, and output_buffers are on in
the
> > > >php.ini.
> > > >
> > > >Any ideas??
> > > >
> > > >I run in to this problem when trying to run some software which is
> > known to
> > > >work, and now I tested it with a simple test.php (above). Don't work.
> > >
> > > Try:
> > > <?php
> > >
> > > header("Location:
> > > http://www.qnet.fi/\r\n\n");
> > > exit();
> > >
> > > ?>
> > >
> > >
> > >
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> >For additional commands, e-mail: php-windows-help@lists.php.net
> >To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> -=- Mike Flynn - Burlington, VT -=-
> mike@mikeflynn.net http://www.mikeflynn.net/ * Give blood *
> ...maintaining lawns, watching televised sports, birthing
> children, listening to Top 40 music, and collecting
> stuffed animals...
>
>
>