Jump to content

[SOLVED] I dont get it !!


yami007

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.