Re[2]: [PHP] Newbie redirect/variable question

From: Date: Thu, 10 May 2001 12:19:43 +0000
Subject: Re[2]: [PHP] Newbie redirect/variable question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52273@lists.php.net to get a copy of this message
Hi Steve, Thursday, May 10, 2001, 1:39:36 PM, you wrote: Steve> Ok - thanks - my new redirect.php is Steve> <?php Steve> if ($fred != "") { Steve> # $statement = "UPDATE links SET hits=hits+1 WHERE href=\"$u\""; Steve> # mysql_query($statement); Steve> Header("Location: $fred"); Steve> exit; Steve> } else { Steve> Header("Location: $HTTP_REFERRER"); Steve> exit; Steve> } ?>> Steve> I get the following message... Steve> Warning: Cannot add header information - headers already sent by (output Steve> started at /home/swadie/public_html/redirect.php:2) in Steve> /home/swadie/public_html/redirect.php on line 9 Make sure you have NO Blanks or any other Text before the <?php ! "<?" has to be the first two characters in the file. Which line is line 9 ? ----------------------- EnjoY, Adaran (vielmailer@adaran.net) check http://www.adaran.net

« previous php.general (#52273) next »