Header utilisation problem

From: Date: Wed, 14 Aug 2002 11:16:51 +0000
Subject: Header utilisation problem
Groups: php.general 
Request: Send a blank email to php-general+get-112514@lists.php.net to get a copy of this message
Hello, I'd like to know why this code not work : case " xxxx ": include("act_create_new_compte.php"); header("Location: ../manager/index.php"); break; I receive this error : Warning: Cannot add header information - headers already sent by (output started at d:\inetpub\wwwroot\website\test2\login\act_create_new_compte.php:31) in d:\inetpub\wwwroot\ website\test2\login\index.php on line 18 But when I place header("Location: ../manager/index.php"); in the end of the file act_create_new_compte.php and remove the line in the case, like that : case "xxxx": include("act_create_new_compte.php"); break; That's work. Could you explain me that ? Bye

« previous php.general (#112514) next »