hi!
I have a include file (inc-common_func.php) with the following functions:
function fix_input ($string){
$string = trim ($string);
$string = str_replace("\r\n", "\n", $string);
$string = str_replace("\r", "\n", $string);
$string = addslashes ($string);
$string = mysql_escape_string ($string);
$string = nl2br($string);
$string = str_replace('2 back slashes here','',$string); //cant show 2 back slashes so
$string = addslashes($string);
return $string;
}
function fix_output ($string){
$string = nl2br($string);
$string = str_replace('\\','',$string);
$string = stripslashes($string);
$string = htmlspecialChars($string);
return $string;
}
i have included this file in image_add_edit.php
in the page when i try to redirect:
header('Location: mng_prod_image.php?flag=1');
i get the following error:
Warning: Cannot modify header information - headers already sent by (output started at /home/tpsadmin/inc-common_func.php:43) in image_add_edit.php on line 68
Does anybody know why??