Re: Cannot modify header information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Please remove space before <?php and space after ?> also remove echo statment.

You can use meta tag or javascript to redirect page.

function redirectPage($URL)
{
   if(trim($URL)=="")
   {
     return false;
   }
   if(!headers_sent())
   {
        header("location:$URL");
   }
   else
   {
        print "<script language='javascript'>location.href='".$URL."';</script>";
   }
}

--- On Tue, 15/12/09, webmaster <ken.poyser@xxxxxxxxxxx> wrote:

From: webmaster <ken.poyser@xxxxxxxxxxx>
Subject:  Cannot modify header information
To: php-objects@xxxxxxxxxxxxxxx
Date: Tuesday, 15 December, 2009, 11:12 PM







 



  


    
      
      
      My next problem I am having is 

the  header function....



my command is 



if (!$card_num) {

    header ("Location: get_card.html" );

    exit;

  }



and I am get back Cannot modify header information - header is already

by (output stared at ......) in ......  on line ##



I have read something about whitespaces, in the location file,

and it appears that there are no leading whitespaces in the location

file



Any suggestions,

Ken





    
     

    
    


 



  






      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux