yami007 Posted September 22, 2008 Share Posted September 22, 2008 yeah, my login page sends me this error : Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\flame\Admin\login2.php:3) in C:\AppServ\www\flame\Includes\functions.php on line 21 I just used this function on the login page <?php function redirect_to( $location = NULL ) { if ($location != NULL) { header("Location: {$location}"); exit; } } ?> is there something wrong with it PS: 21 is " header("Location: {$location}"); " any help please !! Link to comment https://forums.phpfreaks.com/topic/125288-solved-i-dont-get-it/ Share on other sites More sharing options...
trq Posted September 22, 2008 Share Posted September 22, 2008 Did you read the big HEADER ERRORS sticky at the top of this board? Basically, no output can be sent to the browser prior to calling the header() function. This includes all html and whitespace. Link to comment https://forums.phpfreaks.com/topic/125288-solved-i-dont-get-it/#findComment-647634 Share on other sites More sharing options...
PFMaBiSmAd Posted September 22, 2008 Share Posted September 22, 2008 And did you read the error message and examine login2.php up to and including line 3 where the error message stated the output is occurring that is preventing the headers from working - (output started at C:\AppServ\www\flame\Admin\login2.php:3) Link to comment https://forums.phpfreaks.com/topic/125288-solved-i-dont-get-it/#findComment-647659 Share on other sites More sharing options...
yami007 Posted September 22, 2008 Author Share Posted September 22, 2008 thanks so much, how could it be ??? the problem was that i left a blank line at the top of tha login2.php page thanks for help Link to comment https://forums.phpfreaks.com/topic/125288-solved-i-dont-get-it/#findComment-647664 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.