RE: [PHP-WIN] header() problem

From: Date: Fri, 28 Dec 2001 19:51:01 +0000
Subject: RE: [PHP-WIN] header() problem
Groups: php.windows 
Request: Send a blank email to php-windows+get-11193@lists.php.net to get a copy of this message
Jukka, I've used another method to do redirects that works OK (but it requires Javascript on the client): Something like echo "<script language=\"javascript\">window.location.href=\"mypage.php\"</script>"; I've used this with "... or die(...);" as a quick-and-dirty redirect to an error page. Cheers, Fred Woolsey -----Original Message----- From: Jukka Pakkanen To: Mike Flynn Cc: php-windows@lists.php.net Sent: 12/28/2001 11:26 AM Subject: Re: [PHP-WIN] header() problem 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... > > > -- 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

« previous php.windows (#11193) next »