Warning with Header("Location: test.php")

From: Date: Tue, 26 Nov 2002 04:02:02 +0000
Subject: Warning with Header("Location: test.php")
Groups: php.general 
Request: Send a blank email to php-general+get-126039@lists.php.net to get a copy of this message
I have user Header("Location: test.php") in a php file. It is not working, instead I have got a warning of the form Warning: Cannot add header information - headers already sent by (output started at /var/www/html/test.php:5) in /var/www/html/test.php on line 15 Here line 15 contains the Header ("Location:test.php") line. I will be grateful if you can help me.

« previous php.general (#126039) next »