|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2002-02-13 02:03 UTC] yohgaki@php.net
  [2002-02-13 08:34 UTC] yohgaki@php.net
  [2002-02-13 21:25 UTC] john dot zoetebier at transparent dot co dot nz
  [2002-02-24 06:00 UTC] yohgaki@php.net
  [2002-04-30 00:00 UTC] php-bugs at lists dot php dot net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 07:00:01 2025 UTC | 
//Bug in PHP 4.0.6 If output_buffer = On AND session_start() AND header("Location: ..) AND no HTML output then PHP sends no header You expect the browser to redirect to Location URL. What really happends depends on the browser: - Netscape: waits a while and nothing happens - IE: redirects to search engine - Konqueror: connection lost - Some browsers indicate empty document received Work around: - when output buffering is on, then add blank line before start of script - switch output buffering off Example PHP page excerpt: <?php session_start(); if (!isset($HTTP_COOKIE_VARS['CompanyID'])) { $Info = urlencode("Please log in."); header("Location: Login.php?Info=$Info"); exit; } // More lines ..... ?>