| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2003-11-03 04:38 UTC] moriyoshi@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 15:00:01 2025 UTC | 
Description: ------------ PHP 4.3.2.2 CGI Try to save the code below to file in utf-8. Reproduce code: --------------- <?//!!!redirect has to be in ansi and not in UTF-8 !!!! if (!headers_sent($filename, $linenum)) { header ('Location: http://www.google.com/'); exit; // You would most likely trigger an error here. } else { print "Headers already sent in $filename on line $linenum\nCannot redirect."; exit; } ?> Expected result: ---------------- Redirect to google Actual result: -------------- message: Headers already sent in C:\...\redir_.php on line 1 Cannot redirect.